I have upgraded from trial subscription to Pay as you go subscription. Now after upgrading, my subscription id and tenant id is changed.
When I try to connect to Azure subscription from Windows PowerShell using Connect-AzAccount it connect but if shows old tenant id and subscription id and subscription name is also not displayed.
PS C:\WINDOWS\system32> Connect-AzAccount
Account SubscriptionName TenantId Environment
xxxxxx@Karima ben .com 9b98da7a-497b-4a8e-b6e4-6c4d32cd1c42 AzureCloud
When I try to create resource group, I get below error
PS C:\WINDOWS\system32> New-AzResourceGroup -Name RG01 -Location "South Central US"
New-AzResourceGroup : 'this.Client.SubscriptionId' cannot be null.
At line:1 char:1
- New-AzResourceGroup -Name RG01 -Location "South Central US"
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : CloseError: (:) [New-AzResourceGroup], ValidationException
- FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupCmd
let
P.S. Everything works well from Cloud Shell
I have restarted my PC as a T/s
Please provide any pointers