Use Select-AzureSubscription -Default to set the default subscription. Select-azuresubscription doesnt work for either name or subscription ID. No default subscription has been designated. The end result is to use this script in a Azure runbook. The SubscriptionID can be found in the output of the Get-AzureRmSubscription. Im trying to export an NSG.Īttempting Select-AzureSubscription Failed until I performed Login-azureAccount Failure was. I have successfully logged into Azure via connect-azurermaccount. Use Select-AzureSubscription-Default to set the default subscription. To change the current subscription use the following steps. Tfs No Default Subscription Has Been Designated Use Select Azuresubscription Default Subscriptionname To Set The Default Subscription Stack Overflow Use Select-AzureSubscription -Default to set the default subscription.
0 Comments
Leave a Reply. |