I get an error when trying to set the azure subscription using the Windows PowerShell.
Set-AzureSubscription -SubscriptionName $azureSubscriptionName -CurrentStorageAccount $service_name
Set-AzureSubscription : ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription. At line:1 char:1 + Set-AzureSubscription -SubscriptionName $azureSubscriptionName -CurrentStorage ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Set-AzureSubscription], CloudException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.SetAzureSubscriptionCommand
I confirmed in the azure portal that the service I am giving as a parameter is in the subscription passed in $azureSubscriptionName.
Other fact is when I list Azure Subscriptions the CurrentStorageAccountName is empty.
What is wrong on this command? How can I set the current storage account?