On which account should we log in in order to copy the managed disk in other subscription, I got this error while running the script as it is:-
Select-AzureRmSubscription : Run Login-AzureRmAccount to login.
At line:32 char:1
- Select-AzureRmSubscription -SubscriptionId $SubscriptionId
-
+ CategoryInfo : CloseError: (:) [Set-AzureRmContext], PSInvalidOperationException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.SetAzureRMContextCommand
New-AzureRmDisk : No account found in the context. Please login using Login-AzureRMAccount.
At line:36 char:1
- New-AzureRmDisk -Disk $diskConfig -ResourceGroupName $resourceGroupNa ...
-
+ CategoryInfo : NotSpecified: (:) [New-AzureRmDisk], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException,Microsoft.Azure.Commands.Compute.Automation.NewAzureRmDisk
On which account should we log in in order to copy the managed disk in other subscription, I got this error while running the script as it is:-
Select-AzureRmSubscription : Run Login-AzureRmAccount to login.
At line:32 char:1
New-AzureRmDisk : No account found in the context. Please login using Login-AzureRMAccount.
At line:36 char:1