Cloud Computing & MSA

Azure PowerShell - Set-AzureOSDisk

아주라·2017년 9월 7일·조회 3,433

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

댓글 0

로그인 후 댓글을 남길 수 있습니다.

아직 댓글이 없습니다.