Skip to content

Commit

Permalink
ARMTask: Added telemetries to track deployment scopes (#11463)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinodkumar3 authored Sep 30, 2019
1 parent 25fe4c2 commit e8ff177
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Tasks/AzureResourceManagerTemplateDeploymentV3/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ import { DeploymentScopeBase } from "./operations/DeploymentScopeBase";
function run(): Promise<void> {
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(
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureResourceManagerTemplateDeploymentV3/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 3,
"Minor": 0,
"Patch": 1
"Patch": 2
},
"preview": "true",
"demands": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 3,
"Minor": 0,
"Patch": 1
"Patch": 2
},
"preview": "true",
"demands": [],
Expand Down

0 comments on commit e8ff177

Please sign in to comment.