Skip to content

Commit b94e569

Browse files
authored
Add feature parameter (#18274)
1 parent afb076c commit b94e569

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

common-npm-packages/azure-arm-rest-v2/azureAppServiceUtility.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ import { Kudu } from './azure-arm-app-service-kudu';
66
import webClient = require('./webClient');
77

88
export class AzureAppServiceUtility {
9-
private _appService: AzureAppService;
10-
constructor(appService: AzureAppService) {
9+
10+
private readonly _appService: AzureAppService;
11+
private readonly _telemetryFeature: string;
12+
13+
constructor(appService: AzureAppService, telemetryFeature?: string) {
1114
this._appService = appService;
15+
this._telemetryFeature = telemetryFeature || "AzureAppServiceDeployment"; //TODO modify telemetry.publish command so that agent automatically pass task name and version to the server then remove this parameter
1216
}
1317

1418
public async getWebDeployPublishingProfile(): Promise<any> {
@@ -137,7 +141,7 @@ export class AzureAppServiceUtility {
137141
authMethod: method
138142
};
139143
tl.debug(`Using ${method} authentication method for Kudu service.`);
140-
console.log("##vso[telemetry.publish area=TaskDeploymentMethod;feature=AzureAppServiceDeployment]" + JSON.stringify(authMethodtelemetry));
144+
console.log(`##vso[telemetry.publish area=TaskDeploymentMethod;feature=${this._telemetryFeature}]${JSON.stringify(authMethodtelemetry)}`);
141145

142146
return method + " " + token;
143147
}

common-npm-packages/azure-arm-rest-v2/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common-npm-packages/azure-arm-rest-v2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-tasks-azure-arm-rest-v2",
3-
"version": "3.222.0",
3+
"version": "3.222.1",
44
"description": "Common Lib for Azure ARM REST apis",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)