Skip to content

Commit

Permalink
Kudu Auth: Publish auth method to telemetry from tasks (#18182)
Browse files Browse the repository at this point in the history
* Publish auth method to telemetry

* Fix telemetry commands

* Upgrade common packages
  • Loading branch information
onetocny committed Apr 26, 2023
1 parent 4c9dee8 commit f5d5c22
Show file tree
Hide file tree
Showing 34 changed files with 55 additions and 132 deletions.
3 changes: 3 additions & 0 deletions Tasks/AzureAppServiceManageV0/azureappservicemanage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ async function run() {
const buffer = new Buffer(scmCreds.username + ':' + scmCreds.password);
const auth = buffer.toString("base64");
var authHeader = "Basic " + auth;

tl.debug("Kudu: using basic authentication for publish profile");
console.log('##vso[telemetry.publish area=TaskDeploymentMethod;feature=AzureAppServiceDeployment]{"authMethod":"Basic"}');

kuduService = new Kudu(scmCreds.scmUri, authHeader);
kuduServiceUtils = new KuduServiceUtils(kuduService);
} else {
Expand Down
6 changes: 3 additions & 3 deletions Tasks/AzureAppServiceManageV0/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Tasks/AzureAppServiceManageV0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@types/mocha": "^5.2.7",
"@types/node": "^10.17.0",
"@types/q": "1.0.7",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.1",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.3",
"azure-pipelines-tasks-utility-common": "^3.0.3",
"q": "1.4.1",
"xml2js": "^0.5.0"
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureAppServiceManageV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"version": {
"Major": 0,
"Minor": 221,
"Patch": 103
"Patch": 104
},
"minimumAgentVersion": "1.102.0",
"instanceNameFormat": "$(Action): $(WebAppName)",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureAppServiceManageV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"version": {
"Major": 0,
"Minor": 221,
"Patch": 103
"Patch": 104
},
"minimumAgentVersion": "1.102.0",
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
Expand Down
20 changes: 3 additions & 17 deletions Tasks/AzureFunctionAppContainerV1/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Tasks/AzureFunctionAppContainerV1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/q": "1.0.7",
"azure-devops-node-api": "11.2.0",
"azure-pipelines-task-lib": "^3.4.0",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.1",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.3",
"azure-pipelines-tasks-webdeployment-common": "^4.219.1",
"moment": "2.29.4",
"q": "1.4.1",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureFunctionAppContainerV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 1,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"minimumAgentVersion": "2.104.1",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureFunctionAppContainerV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 1,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"minimumAgentVersion": "2.104.1",
"groups": [
Expand Down
20 changes: 3 additions & 17 deletions Tasks/AzureFunctionAppV1/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Tasks/AzureFunctionAppV1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/q": "1.0.7",
"azure-devops-node-api": "11.2.0",
"azure-pipelines-task-lib": "^3.4.0",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.1",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.3",
"azure-pipelines-tasks-webdeployment-common": "^4.219.1",
"azure-storage": "2.10.7",
"moment": "^2.29.3",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureFunctionAppV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 1,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"minimumAgentVersion": "2.104.1",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureFunctionAppV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 1,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"minimumAgentVersion": "2.104.1",
"groups": [
Expand Down
20 changes: 3 additions & 17 deletions Tasks/AzureFunctionAppV2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Tasks/AzureFunctionAppV2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/q": "1.0.7",
"azure-devops-node-api": "11.2.0",
"azure-pipelines-task-lib": "^3.4.0",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.1",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.3",
"azure-pipelines-tasks-webdeployment-common": "^4.219.1",
"azure-storage": "2.10.7",
"moment": "^2.29.4",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureFunctionAppV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 2,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"releaseNotes": "What's new in version 2.* <br /> Removed WAR Deploy Support, setting Web.Config options, and the option for the Startup command for Linux Azure Function Apps.",
"minimumAgentVersion": "2.104.1",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureFunctionAppV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 2,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"minimumAgentVersion": "2.104.1",
Expand Down
6 changes: 3 additions & 3 deletions Tasks/AzureRmWebAppDeploymentV3/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Tasks/AzureRmWebAppDeploymentV3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/q": "1.0.7",
"archiver": "1.2.0",
"azure-pipelines-task-lib": "^3.4.0",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.1",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.3",
"decompress-zip": "^0.3.3",
"ltx": "2.8.0",
"moment": "^2.29.4",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureRmWebAppDeploymentV3/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 3,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"releaseNotes": "What's new in Version 3.0: <br/>&nbsp;&nbsp;Supports File Transformations (XDT) <br/>&nbsp;&nbsp;Supports Variable Substitutions(XML, JSON) <br/>Click [here](https://aka.ms/azurermwebdeployreadme) for more information.",
"minimumAgentVersion": "2.104.1",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureRmWebAppDeploymentV3/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 3,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"minimumAgentVersion": "2.104.1",
Expand Down
33 changes: 3 additions & 30 deletions Tasks/AzureRmWebAppDeploymentV4/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Tasks/AzureRmWebAppDeploymentV4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/node": "^10.17.0",
"@types/q": "1.0.7",
"azure-pipelines-task-lib": "^3.4.0",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.1",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.3",
"azure-pipelines-tasks-webdeployment-common": "4.208.0",
"moment": "^2.29.4",
"q": "1.4.1",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureRmWebAppDeploymentV4/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 4,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"releaseNotes": "What's new in version 4.*<br />Supports Zip Deploy, Run From Package, War Deploy [Details here](https://aka.ms/appServiceDeploymentMethods)<br />Supports App Service Environments<br />Improved UI for discovering different App service types supported by the task<br/>Run From Package is the preferred deployment method, which makes files in wwwroot folder read-only<br/>Click [here](https://aka.ms/azurermwebdeployreadme) for more information.",
"minimumAgentVersion": "2.104.1",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureRmWebAppDeploymentV4/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 4,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"minimumAgentVersion": "2.104.1",
Expand Down
20 changes: 3 additions & 17 deletions Tasks/AzureWebAppContainerV1/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Tasks/AzureWebAppContainerV1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@types/uuid": "^8.3.0",
"azure-devops-node-api": "11.2.0",
"azure-pipelines-task-lib": "^3.4.0",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.1",
"azure-pipelines-tasks-azure-arm-rest-v2": "^3.221.3",
"azure-pipelines-tasks-webdeployment-common": "^4.219.1",
"moment": "^2.29.4",
"q": "1.4.1",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureWebAppContainerV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 1,
"Minor": 221,
"Patch": 102
"Patch": 103
},
"minimumAgentVersion": "2.104.1",
"groups": [
Expand Down

0 comments on commit f5d5c22

Please sign in to comment.