Skip to content

Commit 34ede10

Browse files
[Az.Accounts] Fix the doubled Api Version in Uri of the request issued by Invoke-AzRestMethod (Azure#16616)
* fix double api version * update changelog * wording
1 parent c980882 commit 34ede10

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/Accounts/Accounts/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Fixed the doubled Api Version in the URI of the underlying request issued by `Invoke-AzRestMethod`. [#16615]
2223

2324
## Version 2.7.0
2425
* Removed `ServicePrincipalSecret` and `CertificatePassword` in `PSAzureRmAccount` [#15427]

src/Accounts/Accounts/Rest/InvokeAzRestMethodCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public override void ExecuteCmdlet()
105105
if (ByParameters.Equals(this.ParameterSetName))
106106
{
107107
this.Path = ConstructPath(this.IsParameterBound(c => c.SubscriptionId) ? this.SubscriptionId : context.Subscription.Id, this.ResourceGroupName, this.ResourceProviderName, this.ResourceType, this.Name);
108-
this.Path += $"?api-version={this.ApiVersion}";
109108
}
110109
else if (ByURI.Equals(this.ParameterSetName))
111110
{

0 commit comments

Comments
 (0)