You manage an Azure virtual machine (VM) named AppVM. The application hosted on AppVM continuously writes small files to disk. Recently the usage of applications on AppVM has increased greatly.
You need to improve disk performance on AppVM.
Which Microsoft Azure Power Shell cmdlet should you use with each Power Shell command line? To answer, drag the appropriate Microsoft Azure Power Shell cmdlet to the correct location in the Power Shell code. Each Power Shell 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.
Select and Place:
Correct Answer:
Explanation/Reference:
* Set-AzureDataDisk
Sets the host-cache mode on an existing data disk object.
* Example:
This command gets the “MyVM” virtual machine running on the “myservice” cloud service, and then sets the data disk at LUN 2 of the virtual machine to use ReadOnly host caching.
Windows PowerShell
C:PS>Get-AzureVM “myservice” -name “MyVM” | Set-AzureDataDisk -LUN 2 -HostCaching ReadOnly | Update-AzureVM
* Set-AzureDataDisk Parameter: -HostCaching
Sets the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite (WriteOnly is NOT an option).
Reference: Set-AzureDataDisk http://msdn.microsoft.com/en-us/library/dn495144.aspx