Which Azure PowerShell cmdlet should you run?

A company deploys Microsoft SQL Server on an Azure Standard_DS3 virtual machine (VM).
You need to modify the disk caching policy.
Which Azure PowerShell cmdlet should you run?

A company deploys Microsoft SQL Server on an Azure Standard_DS3 virtual machine (VM).
You need to modify the disk caching policy.
Which Azure PowerShell cmdlet should you run?

A.
Set-AzureRmVmOperatingSystem

B.
Set-AzureRmVmDataDisk

C.
Update-Disk

D.
Update-AzureDisk

Explanation:
The Set-AzureRmVMDataDisk cmdlet modifies properties of a virtual machine data disk.
Syntax:
Set-AzureRmVMDataDisk
[-VM] <PSVirtualMachine>
[-Lun] <Int32>
[[-Caching] <CachingTypes>]
[[-DiskSizeInGB] <Int32>]
[<CommonParameters>]
The -caching parameter specifies the caching mode of the disk. The acceptable values for this parameter are:
ReadOnly
ReadWrite
The default value is ReadWrite. Changing this value causes the virtual machine to restart.
IncorrectAnswers:
A: The Set-AzureRmVMOperatingSystem cmdlet sets operating system properties for a virtual machine. You
can specify logon credentials, computer name, and operating system type.
C: The Update-Disk cmdlet updates cached information about the specified Disk object only
D: The Update-AzureDisk cmdlet changes the label that is associated with a disk in the disk repository of the
current Azure subscription.
https://docs.microsoft.com/en-us/powershell/module/azurerm.compute/set-azurermvmdatadisk?
view=azurermps-4.3.1



Leave a Reply 0

Your email address will not be published. Required fields are marked *