다음을 통해 공유


Set-AzureStorSimpleVirtualDevice

StorSimple 가상 디바이스의 디바이스 구성을 만들거나 업데이트합니다.

참고

이 설명서에서 참조하는 cmdlet은 Service Management API를 사용하는 레거시 Azure 리소스를 관리하기 위한 것입니다. Azure Resource Manager 리소스를 관리하는 cmdlet은 Az PowerShell 모듈을 참조하세요.

Syntax

Set-AzureStorSimpleVirtualDevice
   -DeviceName <String>
   -SecretKey <String>
   -AdministratorPassword <String>
   -SnapshotManagerPassword <String>
   [-TimeZone <TimeZoneInfo>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

Set-AzureStorSimpleVirtualDevice cmdlet은 Azure StorSimple 가상 디바이스의 디바이스 구성을 만들거나 업데이트합니다.

예제

예제 1: 가상 디바이스 업데이트

PS C:\>$TimeZoneInfo = [System.TimeZoneInfo]::GetSystemTimeZones() | where { $_.Id -eq "Pacific Standard Time" }
PS C:\> Set-AzureStorSimpleVirtualDevice -DeviceName "Contoso23" -SecretKey "wcZBlBGpCMf4USdSKyt/SQ==" -TimeZone $TimeZoneInfo
VERBOSE: ClientRequestId: e31f0d6b-451d-4c1d-b2f1-3fc84c13972c_PS
VERBOSE: ClientRequestId: df58db83-d563-4a2e-bbb4-9576f0e69ca6_PS
VERBOSE: ClientRequestId: 494a9f0d-79ee-4fde-ab4d-85ee5a357556_PS
VERBOSE: ClientRequestId: ce557cbf-174d-4301-93d4-5ffe082c8413_PS
VERBOSE: ClientRequestId: 31284dad-de2c-4758-a2ef-45962875bfa6_PS
VERBOSE: About to configure the device : win-ff93i74m1e1 ! 
VERBOSE: ClientRequestId: d9c66302-45d8-488a-adda-8ccf957f77d3_PS


TaskId       : 21f530c3-bc47-4591-8c4e-da4d694b751d
TaskResult   : Succeeded
TaskStatus   : Completed
ErrorCode    : 
ErrorMessage : 
TaskSteps    : {Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStep, Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStep}

VERBOSE: The task created for your Setup operation has completed successfully. 
VERBOSE: ClientRequestId: a94f972c-18ea-40b6-9401-2ad209c0c8b4_PS
AlertNotification              : Microsoft.WindowsAzure.Management.StorSimple.Models.AlertNotificationSettings
Chap                           : Microsoft.WindowsAzure.Management.StorSimple.Models.ChapSettings
DeviceProperties               : Microsoft.WindowsAzure.Management.StorSimple.Models.DeviceInfo
DnsServer                      : Microsoft.WindowsAzure.Management.StorSimple.Models.DnsServerSettings
InstanceId                     : d369ebb4-8b9a-47fc-9a6b-60f371e123ae
Name                           : 
NetInterfaceList               : {}
OperationInProgress            : None
RemoteMgmtSettingsInfo         : Microsoft.WindowsAzure.Management.StorSimple.Models.RemoteManagementSettings
RemoteMinishellSecretInfo      : Microsoft.WindowsAzure.Management.StorSimple.Models.RemoteMinishellSettings
SecretEncryptionCertThumbprint : 
Snapshot                       : Microsoft.WindowsAzure.Management.StorSimple.Models.SnapshotSettings
TimeServer                     : Microsoft.WindowsAzure.Management.StorSimple.Models.TimeSettings
Type                           : VirtualAppliance
VirtualApplianceProperties     : Microsoft.WindowsAzure.Management.StorSimple.Models.VirtualApplianceInfo
WebProxy                       : Microsoft.WindowsAzure.Management.StorSimple.Models.WebProxySettings

VERBOSE: Successfully updated configuration for device Contoso23 with id d369ebb4-8b9a-47fc-9a6b-60f371e123ae

첫 번째 명령은 System.TimeZoneInfo .NET 클래스 및 표준 구문을 사용하여 Pacific Standard 표준 시간대를 가져와 해당 개체를 $TimeZoneInfo 변수에 저장합니다.

두 번째 명령은 contoso23이라는 디바이스를 업데이트하여 $TimeZoneInfo 지정된 표준 시간대를 사용합니다. 이 명령에는 가상 디바이스 구성에 액세스하려면 비밀 키가 필요합니다.

예제 2: 파이프라인 연산자를 사용하여 가상 디바이스 업데이트

PS C:\> [System.TimeZoneInfo]::GetSystemTimeZones() | where { $_.Id -eq "Pacific Standard Time" } | Set-AzureStorSimpleVirtualDevice -DeviceName "Contoso23" -SecretKey "wcZBlBGpCMf4USdSKyt/SQ=="

이 명령은 명령이 만드는 표준 시간대를 사용하도록 Contoso23이라는 디바이스를 업데이트합니다. 이 명령에는 가상 디바이스 구성에 액세스하려면 비밀 키가 필요합니다. 이 명령은 파이프라인 연산자를 사용하여 표준 시간대를 현재 cmdlet에 전달한다는 점을 제외하고 이전 예제와 동일한 방식으로 작동합니다.

매개 변수

-AdministratorPassword

구성할 가상 디바이스의 관리자 암호를 지정합니다.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DeviceName

구성할 가상 디바이스의 이름을 지정합니다.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Profile

Azure 프로필을 지정합니다.

Type:AzureSMProfile
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SecretKey

가상 디바이스에 대한 서비스 암호화 키를 지정합니다. 이 키는 첫 번째 물리적 디바이스가 리소스에 등록될 때 생성됩니다.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SnapshotManagerPassword

스냅샷 관리자 암호를 지정합니다.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-TimeZone

디바이스의 표준 시간대를 지정합니다. GetSystemTimeZone() 메서드를 사용하여 TimeZoneInfo 개체를 만들 수 있습니다. 예를 들어 이 명령은 Pacific Standard Time에 대한 표준 시간대 정보 개체를 만듭니다. \[System.TimeZoneInfo\]::GetSystemTimeZones() | where { $_.Id -eq "Pacific Standard Time" }

Type:TimeZoneInfo
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

입력

TimeZoneInfo

TimeZoneInfo 개체를 이 cmdlet으로 파이프할 수 있습니다.

출력

DeviceJobDetails

이 cmdlet은 가상 디바이스에 대한 업데이트된 디바이스 세부 정보를 반환합니다.