Skip to content

Commit 1a4473e

Browse files
committed
Change api version for deployment operation
1 parent 7dd6380 commit 1a4473e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Components/Constants.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ public static class Constants
6464
/// </summary>
6565
public static readonly string LockApiVersion = "2015-01-01";
6666

67+
/// <summary>
68+
/// The default deployment operation API version.
69+
/// </summary>
70+
public static readonly string DeploymentOperationApiVersion = "2016-02-01";
71+
6772
/// <summary>
6873
/// The move action.
6974
/// </summary>

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/GetAzureResourceGroupDeploymentOperationCmdlet.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ private async Task<ResponseWithContinuation<JObject[]>> GetResources()
8484
{
8585
var resourceId = this.GetResourceId();
8686

87-
var apiVersion = await this
88-
.DetermineApiVersion(resourceId: resourceId)
89-
.ConfigureAwait(continueOnCapturedContext: false);
87+
var apiVersion = string.IsNullOrWhiteSpace(this.ApiVersion) ? Constants.DeploymentOperationApiVersion : this.ApiVersion;
9088

9189
return await this
9290
.GetResourcesClient()

0 commit comments

Comments
 (0)