From e8ff17715da52c7f91cf46c7e304d04d01cbbc2b Mon Sep 17 00:00:00 2001 From: Vinod Kumar <49094312+vinodkumar3@users.noreply.github.com> Date: Mon, 30 Sep 2019 17:14:42 +0530 Subject: [PATCH] ARMTask: Added telemetries to track deployment scopes (#11463) --- Tasks/AzureResourceManagerTemplateDeploymentV3/main.ts | 8 ++++++++ Tasks/AzureResourceManagerTemplateDeploymentV3/task.json | 2 +- .../task.loc.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Tasks/AzureResourceManagerTemplateDeploymentV3/main.ts b/Tasks/AzureResourceManagerTemplateDeploymentV3/main.ts index 542fa936b602..534a2f5452bd 100644 --- a/Tasks/AzureResourceManagerTemplateDeploymentV3/main.ts +++ b/Tasks/AzureResourceManagerTemplateDeploymentV3/main.ts @@ -12,6 +12,14 @@ import { DeploymentScopeBase } from "./operations/DeploymentScopeBase"; function run(): Promise { var taskParameters = new armDeployTaskParameters.TaskParameters(); return taskParameters.getTaskParameters().then((taskParameters) => { + + //Telemetry + var deploymentScopeTelemetry = { + deploymentScope: taskParameters.deploymentScope, + deploymentMode: taskParameters.deploymentMode + }; + console.log("##vso[telemetry.publish area=TaskDeploymentMethod;feature=AzureResourceManagerTemplateDeployment]" + JSON.stringify(deploymentScopeTelemetry)); + if(taskParameters.deploymentScope === "Management Group"){ var deploymentParameters = new DeploymentParameters({}, taskParameters.location); var managementGroupOperationsController = new DeploymentScopeBase( diff --git a/Tasks/AzureResourceManagerTemplateDeploymentV3/task.json b/Tasks/AzureResourceManagerTemplateDeploymentV3/task.json index 6bad16409860..5b46bd04cca1 100644 --- a/Tasks/AzureResourceManagerTemplateDeploymentV3/task.json +++ b/Tasks/AzureResourceManagerTemplateDeploymentV3/task.json @@ -15,7 +15,7 @@ "version": { "Major": 3, "Minor": 0, - "Patch": 1 + "Patch": 2 }, "preview": "true", "demands": [], diff --git a/Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json b/Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json index 045a89bd0462..4fb4432a0b7e 100644 --- a/Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json +++ b/Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json @@ -15,7 +15,7 @@ "version": { "Major": 3, "Minor": 0, - "Patch": 1 + "Patch": 2 }, "preview": "true", "demands": [],