DRAG DROP
You administer an Azure Virtual Machine (VM) named server1. The VM is in a cloud service named
ContosoService1.
You discover that the VM is experiencing storage issues due to increased application logging on the server.
You need to create a new 256-GB disk and attach it to the server.
Which Power Shell cmdlets should you use? To answer, drag the appropriate cmdlet to the correct
location in the Power Shell command. Each cmdlet may be used once, more than once, or not at all. You
may need to drag the split bar between panes or scroll to view content.
Explanation:
This example gets a virtual machine object for the virtual machine named “MyVM” in the “myservice”
cloud service, updates the virtual machine object by attaching an existing data disk from the repository
using the disk name, and then updates the Azure virtual machine.
Windows PowerShell
C:\\PS>Get-AzureVM “myservice” -Name “MyVM” `| Add-AzureDataDisk -Import -DiskName
“MyExistingDisk” -LUN 0 `| Update-AzureVMAdd-AzureDataDisk
URL: http://msdn.microsoft.com/en-us/library/dn495298.aspx
Get-AzureVM
Add-AzureDataDisk
Update-AzureVM
From https://docs.microsoft.com/en-us/powershell/module/azure/add-azuredatadisk?view=azuresmps-3.7.0