Set-AzureSiteRecoveryVM
Site Recovery 보호 엔터티에 대한 복구 쪽 옵션을 설정합니다.
참고
이 설명서에서 참조하는 cmdlet은 Service Management API를 사용하는 레거시 Azure 리소스를 관리하기 위한 것입니다. Azure Resource Manager 리소스를 관리하는 cmdlet은 Az PowerShell 모듈을 참조하세요.
Syntax
Set-AzureSiteRecoveryVM
-VirtualMachine <ASRVirtualMachine>
[-Name <String>]
[-Size <String>]
[-PrimaryNic <String>]
[-RecoveryNetworkId <String>]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
Set-AzureSiteRecoveryVM cmdlet은 Azure Site Recovery 보호 엔터티에 대해 복구 가상 머신 크기 및 복구 가상 머신 네트워크와 같은 복구 쪽 보호 옵션을 설정합니다.
예제
예제 1: 보호된 가상 머신에서 업데이트 허용
PS C:\> $ProtectionContainer = Get-AzureSiteRecoveryProtectionContainer
PS C:\> $VirtualMachines = Get-AzureSiteRecoveryVM -ProtectionContainer $ProtectionContainer
PS C:\> Set-AzureSiteRecoveryVM -VirtualMachine $VirtualMachines[0] -Name "NewVirtualMachine05"
Name :
ID : 8170d274-1e48-404a-b080-172ada140bc3
ClientRequestId : 09354052-8430-4fa8-9a35-63196dd4b2b4-2015-02-03 04:19:06Z-P
State : NotStarted
StateDescription : NotStarted
StartTime :
EndTime :
AllowedActions :
Tasks : {}
Errors : {}
첫 번째 명령은 Get-AzureSiteRecoveryProtectionContainer cmdlet을 사용하여 보호된 컨테이너를 가져와서 $ProtectionContainer 변수에 저장합니다.
두 번째 명령은 Get-AzureSiteRecoveryVM cmdlet을 사용하여 $ProtectionContainer 가상 머신을 가져온 다음 $VitrualMachines 변수에 저장합니다.
최종 명령은 newVirtualMachine05라는 $VitrualMachines 배열의 첫 번째 가상 머신에 대한 업데이트를 허용합니다.
매개 변수
-Name
대상 가상 머신의 이름을 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PrimaryNic
기본 네트워크 어댑터 카드를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
이 cmdlet이 읽는 Azure 프로필을 지정합니다. 프로필을 지정하지 않으면 이 cmdlet은 로컬 기본 프로필에서 읽습니다.
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RecoveryNetworkId
복구 네트워크 ID를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Size
대상 가상 머신 크기를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualMachine
Site Recovery 가상 머신 개체를 지정합니다.
Type: | ASRVirtualMachine |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |