Print
카테고리: [ Cloud Computing & MSA ]
조회수: 2657

1. 개요

The Set-AzureOSDisk cmdlet modifies the host cache mode of the operating system disk of an Azure virtual machine. The supported host cache modes are ReadOnly and ReadWrite. If you run this cmdlet on a virtual machine that is running, that virtual machine restarts.

 

2. 문법

Set-AzureOSDisk 
  [-HostCaching] <String> 
  [-InformationAction <ActionPreference>] 
  [-InformationVariable <String>] 
  [-Profile <AzureSMProfile>]  -VM <IPersistentVM> 
  [<CommonParameters>]

 

3. 예제

Get-AzureVM "AppService" 
  -name "AppVM" | Set-AzureOSDisk -LUN 3
  -HostCaching ReadWrite | Update
  -AzureVM