Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set-AzureSubscription : A parameter cannot be found that matches parameter name 'DefaultSubscription'

I am setting azure subscription in powershell with "Set-AzureSubscription –DefaultSubscription $SubscriptionID" API.

But it is giving me error as "Set-AzureSubscription : A parameter cannot be found that matches parameter name 'DefaultSubscription'."

Please guide me on if there is change in azure powershell API's.

like image 792
Amar Avatar asked Feb 22 '26 17:02

Amar


1 Answers

Yes, there was a change in the PowerShell APIs in a recent update. The Select-AzureSubscription now has the parameter to set the default. The name of that parameter is -Default (instead of -DefaultSubscription).

like image 200
MikeWo Avatar answered Feb 25 '26 07:02

MikeWo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!