Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

How do you change HOST CACHE setting on VM Data Disk?

$
0
0

I'd like to change the host cache setting from None to ReadOnly.  I tried the powershell Set-AzureDataDisk but nothing happens.  When I run the command I get no error and the c: prompt is returned.  Any help much appreciated. 

See below:

PS C:\> Select-AzureSubscription "MySubscripton" | Get-AzureVM "myapp1.cloudapp.net" -name "MyVM" | Set-AzureDataDisk -LUN 2 -HostCaching ReadOnly | Update-AzureVM


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>