In this example, a virtual machine has been created with the name myVM and is running the latest version of Ubuntu:
- Create a connection with Azure using the Login-AzureRmAccount cmdlet. Next, authenticate the device by following the instructions provided:
PS> Login-AzureRmAccount
- Create a resource group with the New-AzureRmResourceGroup cmdlet:
PS> $ResourceGroup = 'packpub-demo'PS> $Location = 'East US'PS> New-AzureRmResourceGroup -Name $ResourceGroup -Location $Location
- Create a storage account with the New-AzureRmStorageAccount cmdlet:
PS> $StorageAcctName = 'packpubstorage' PS> New-AzureRmStorageAccount -Name $StorageAcctName ...