From 0f771a22d22d0b80d1d9fac24ba3c360e1157acc Mon Sep 17 00:00:00 2001 From: Vineet Mimrot <--get> Date: Wed, 18 Aug 2021 16:57:56 +0530 Subject: [PATCH 1/3] updated arm api version --- Tasks/AzureResourceGroupDeploymentV2/package.json | 2 +- Tasks/AzureResourceGroupDeploymentV2/task.json | 4 ++-- Tasks/AzureResourceGroupDeploymentV2/task.loc.json | 4 ++-- Tasks/AzureResourceManagerTemplateDeploymentV3/package.json | 2 +- Tasks/AzureResourceManagerTemplateDeploymentV3/task.json | 4 ++-- Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json | 4 ++-- common-npm-packages/azure-arm-rest-v2/azure-arm-resource.ts | 2 +- common-npm-packages/azure-arm-rest-v2/package.json | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Tasks/AzureResourceGroupDeploymentV2/package.json b/Tasks/AzureResourceGroupDeploymentV2/package.json index 047ecd207a18..75bc51857a72 100644 --- a/Tasks/AzureResourceGroupDeploymentV2/package.json +++ b/Tasks/AzureResourceGroupDeploymentV2/package.json @@ -4,7 +4,7 @@ "dependencies": { "@types/node": "^10.17.0", "azure-pipelines-task-lib": "^3.0.6-preview.0", - "azure-pipelines-tasks-azure-arm-rest-v2": "^2.0.1", + "azure-pipelines-tasks-azure-arm-rest-v2": "^2.0.5", "moment": "2.21.0", "typed-rest-client": "1.7.3" }, diff --git a/Tasks/AzureResourceGroupDeploymentV2/task.json b/Tasks/AzureResourceGroupDeploymentV2/task.json index 505baa969adb..d3445df589a2 100644 --- a/Tasks/AzureResourceGroupDeploymentV2/task.json +++ b/Tasks/AzureResourceGroupDeploymentV2/task.json @@ -14,8 +14,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 184, - "Patch": 1 + "Minor": 192, + "Patch": 0 }, "demands": [], "minimumAgentVersion": "2.119.1", diff --git a/Tasks/AzureResourceGroupDeploymentV2/task.loc.json b/Tasks/AzureResourceGroupDeploymentV2/task.loc.json index cb3712640671..21c4124f6eb4 100644 --- a/Tasks/AzureResourceGroupDeploymentV2/task.loc.json +++ b/Tasks/AzureResourceGroupDeploymentV2/task.loc.json @@ -14,8 +14,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 184, - "Patch": 2 + "Minor": 192, + "Patch": 0 }, "demands": [], "minimumAgentVersion": "2.119.1", diff --git a/Tasks/AzureResourceManagerTemplateDeploymentV3/package.json b/Tasks/AzureResourceManagerTemplateDeploymentV3/package.json index fa2df1d44865..a762beb331a8 100644 --- a/Tasks/AzureResourceManagerTemplateDeploymentV3/package.json +++ b/Tasks/AzureResourceManagerTemplateDeploymentV3/package.json @@ -4,7 +4,7 @@ "dependencies": { "@types/node": "^10.17.0", "azure-pipelines-task-lib": "^3.0.6-preview.0", - "azure-pipelines-tasks-azure-arm-rest-v2": "^2.0.1", + "azure-pipelines-tasks-azure-arm-rest-v2": "^2.0.5", "moment": "2.21.0", "typed-rest-client": "1.7.3" }, diff --git a/Tasks/AzureResourceManagerTemplateDeploymentV3/task.json b/Tasks/AzureResourceManagerTemplateDeploymentV3/task.json index 00136a570f07..579e25f974e8 100644 --- a/Tasks/AzureResourceManagerTemplateDeploymentV3/task.json +++ b/Tasks/AzureResourceManagerTemplateDeploymentV3/task.json @@ -14,8 +14,8 @@ "author": "Microsoft Corporation", "version": { "Major": 3, - "Minor": 184, - "Patch": 1 + "Minor": 192, + "Patch": 0 }, "demands": [], "minimumAgentVersion": "2.119.1", diff --git a/Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json b/Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json index 779d4752e014..d9dfc9a79f5d 100644 --- a/Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json +++ b/Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json @@ -14,8 +14,8 @@ "author": "Microsoft Corporation", "version": { "Major": 3, - "Minor": 184, - "Patch": 1 + "Minor": 192, + "Patch": 0 }, "demands": [], "minimumAgentVersion": "2.119.1", diff --git a/common-npm-packages/azure-arm-rest-v2/azure-arm-resource.ts b/common-npm-packages/azure-arm-rest-v2/azure-arm-resource.ts index 37094fe98dc4..48707d961089 100644 --- a/common-npm-packages/azure-arm-rest-v2/azure-arm-resource.ts +++ b/common-npm-packages/azure-arm-rest-v2/azure-arm-resource.ts @@ -18,7 +18,7 @@ export class ResourceManagementClient extends azureServiceClient.ServiceClient { constructor(credentials: msRestAzure.ApplicationTokenCredentials, resourceGroupName: string, subscriptionId: string, options?: any) { super(credentials, subscriptionId); - this.apiVersion = (credentials.isAzureStackEnvironment) ? '2016-06-01' : '2019-10-01'; + this.apiVersion = (credentials.isAzureStackEnvironment) ? '2016-06-01' : '2021-04-01'; this.acceptLanguage = 'en-US'; this.generateClientRequestId = true; if (!!options && !!options.longRunningOperationRetryTimeout) { diff --git a/common-npm-packages/azure-arm-rest-v2/package.json b/common-npm-packages/azure-arm-rest-v2/package.json index 397485fa04cb..b0329cdc7d28 100644 --- a/common-npm-packages/azure-arm-rest-v2/package.json +++ b/common-npm-packages/azure-arm-rest-v2/package.json @@ -1,6 +1,6 @@ { "name": "azure-pipelines-tasks-azure-arm-rest-v2", - "version": "2.0.4", + "version": "2.0.5", "description": "Common Lib for Azure ARM REST apis", "repository": { "type": "git", From 1195e805784d15e78860e2fc2b40800b78f6eb4c Mon Sep 17 00:00:00 2001 From: Vineet Mimrot <--get> Date: Mon, 23 Aug 2021 12:37:55 +0530 Subject: [PATCH 2/3] fixed review comments --- .../azure-arm-rest-v2/azure-arm-management-group.ts | 2 +- common-npm-packages/azure-arm-rest-v2/azure-arm-subscription.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common-npm-packages/azure-arm-rest-v2/azure-arm-management-group.ts b/common-npm-packages/azure-arm-rest-v2/azure-arm-management-group.ts index 61304eeca05a..c4b3b5af7a49 100644 --- a/common-npm-packages/azure-arm-rest-v2/azure-arm-management-group.ts +++ b/common-npm-packages/azure-arm-rest-v2/azure-arm-management-group.ts @@ -13,7 +13,7 @@ export class ManagementGroupManagementClient extends azureServiceClientBase.Azur constructor(credentials: msRestAzure.ApplicationTokenCredentials, managementGroupId: string, options?: any) { super(credentials); this.validateInputs(managementGroupId); - this.apiVersion = '2019-05-10'; + this.apiVersion = '2021-04-01'; this.acceptLanguage = 'en-US'; this.generateClientRequestId = true; if (!!options && !!options.longRunningOperationRetryTimeout) { diff --git a/common-npm-packages/azure-arm-rest-v2/azure-arm-subscription.ts b/common-npm-packages/azure-arm-rest-v2/azure-arm-subscription.ts index 8229ed2548ab..8a13f5026de5 100644 --- a/common-npm-packages/azure-arm-rest-v2/azure-arm-subscription.ts +++ b/common-npm-packages/azure-arm-rest-v2/azure-arm-subscription.ts @@ -13,7 +13,7 @@ export class SubscriptionManagementClient extends azureServiceClientBase.AzureSe constructor(credentials: msRestAzure.ApplicationTokenCredentials, subscriptionId: string, options?: any) { super(credentials); this.validateInputs(subscriptionId); - this.apiVersion = '2019-05-10'; + this.apiVersion = '2021-04-01'; this.acceptLanguage = 'en-US'; this.generateClientRequestId = true; if (!!options && !!options.longRunningOperationRetryTimeout) { From 114723095f2559208878187f0e1482e45ea67826 Mon Sep 17 00:00:00 2001 From: Vineet Mimrot <--get> Date: Mon, 23 Aug 2021 12:48:00 +0530 Subject: [PATCH 3/3] Remove update package --- Tasks/AzureResourceGroupDeploymentV2/package.json | 2 +- Tasks/AzureResourceManagerTemplateDeploymentV3/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tasks/AzureResourceGroupDeploymentV2/package.json b/Tasks/AzureResourceGroupDeploymentV2/package.json index 75bc51857a72..047ecd207a18 100644 --- a/Tasks/AzureResourceGroupDeploymentV2/package.json +++ b/Tasks/AzureResourceGroupDeploymentV2/package.json @@ -4,7 +4,7 @@ "dependencies": { "@types/node": "^10.17.0", "azure-pipelines-task-lib": "^3.0.6-preview.0", - "azure-pipelines-tasks-azure-arm-rest-v2": "^2.0.5", + "azure-pipelines-tasks-azure-arm-rest-v2": "^2.0.1", "moment": "2.21.0", "typed-rest-client": "1.7.3" }, diff --git a/Tasks/AzureResourceManagerTemplateDeploymentV3/package.json b/Tasks/AzureResourceManagerTemplateDeploymentV3/package.json index a762beb331a8..fa2df1d44865 100644 --- a/Tasks/AzureResourceManagerTemplateDeploymentV3/package.json +++ b/Tasks/AzureResourceManagerTemplateDeploymentV3/package.json @@ -4,7 +4,7 @@ "dependencies": { "@types/node": "^10.17.0", "azure-pipelines-task-lib": "^3.0.6-preview.0", - "azure-pipelines-tasks-azure-arm-rest-v2": "^2.0.5", + "azure-pipelines-tasks-azure-arm-rest-v2": "^2.0.1", "moment": "2.21.0", "typed-rest-client": "1.7.3" },