Skip to content

Commit

Permalink
Automatically generate Http port for Azure Functions project (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayrkn authored Apr 12, 2022
1 parent 076985e commit d6f2952
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@
"type": "parameter",
"defaultValue": "V3",
"replaces": "AzureFunctionsVersionValue"
},
"FunctionsHttpPort": {
"type": "parameter",
"datatype": "integer",
"description": "Port number to use for the HTTP endpoint in launchSettings.json."
},
"FunctionsHttpPortGenerated": {
"type": "generated",
"generator": "port",
"parameters": {
"low": 7000,
"high": 7300
}
},
"FunctionsHttpPortReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "FunctionsHttpPort",
"fallbackVariableName": "FunctionsHttpPortGenerated"
},
"replaces": "7071"
}
},
"sources": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"profiles": {
"Company.FunctionApp": {
"commandName": "Project",
"commandLineArgs": "--port 7071",
"launchBrowser": false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@
"type": "parameter",
"defaultValue": "V3",
"replaces": "AzureFunctionsVersionValue"
},
"FunctionsHttpPort": {
"type": "parameter",
"datatype": "integer",
"description": "Port number to use for the HTTP endpoint in launchSettings.json."
},
"FunctionsHttpPortGenerated": {
"type": "generated",
"generator": "port",
"parameters": {
"low": 7000,
"high": 7300
}
},
"FunctionsHttpPortReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "FunctionsHttpPort",
"fallbackVariableName": "FunctionsHttpPortGenerated"
},
"replaces": "7071"
}
},
"sources": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"profiles": {
"Company.FunctionApp": {
"commandName": "Project",
"commandLineArgs": "--port 7071",
"launchBrowser": false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@
"type": "parameter",
"defaultValue": "V4",
"replaces": "AzureFunctionsVersionValue"
},
"FunctionsHttpPort": {
"type": "parameter",
"datatype": "integer",
"description": "Port number to use for the HTTP endpoint in launchSettings.json."
},
"FunctionsHttpPortGenerated": {
"type": "generated",
"generator": "port",
"parameters": {
"low": 7000,
"high": 7300
}
},
"FunctionsHttpPortReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "FunctionsHttpPort",
"fallbackVariableName": "FunctionsHttpPortGenerated"
},
"replaces": "7071"
}
},
"sources": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"profiles": {
"Company.FunctionApp": {
"commandName": "Project",
"commandLineArgs": "--port 7071",
"launchBrowser": false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@
"type": "parameter",
"defaultValue": "V4",
"replaces": "AzureFunctionsVersionValue"
},
"FunctionsHttpPort": {
"type": "parameter",
"datatype": "integer",
"description": "Port number to use for the HTTP endpoint in launchSettings.json."
},
"FunctionsHttpPortGenerated": {
"type": "generated",
"generator": "port",
"parameters": {
"low": 7000,
"high": 7300
}
},
"FunctionsHttpPortReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "FunctionsHttpPort",
"fallbackVariableName": "FunctionsHttpPortGenerated"
},
"replaces": "7071"
}
},
"sources": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"profiles": {
"Company.FunctionApp": {
"commandName": "Project",
"commandLineArgs": "--port 7071",
"launchBrowser": false
}
}
Expand Down

0 comments on commit d6f2952

Please sign in to comment.