Azure-Samples / Azure-Samples/managed-disks-powershell-getting-started
On Which Account We should Login
- Dominant language
- PowerShell
- Stars
- 29
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.