From f6b62fea5a97161b555309c91aa94507e3d9375b Mon Sep 17 00:00:00 2001 From: Vineet <4174297+vineetmimrot@users.noreply.github.com> Date: Tue, 24 Aug 2021 11:26:10 +0530 Subject: [PATCH] Updated arm api version (#15168) * updated arm api version * fixed review comments * Remove update package Co-authored-by: Vineet Mimrot <--get> --- Tasks/AzureResourceGroupDeploymentV2/task.json | 4 ++-- Tasks/AzureResourceGroupDeploymentV2/task.loc.json | 4 ++-- Tasks/AzureResourceManagerTemplateDeploymentV3/task.json | 4 ++-- Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json | 4 ++-- .../azure-arm-rest-v2/azure-arm-management-group.ts | 2 +- common-npm-packages/azure-arm-rest-v2/azure-arm-resource.ts | 2 +- .../azure-arm-rest-v2/azure-arm-subscription.ts | 2 +- common-npm-packages/azure-arm-rest-v2/package.json | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) 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/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-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-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/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) { 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",