다음을 통해 공유


New-AzureStorSimpleDeviceVolumeContainer

볼륨 컨테이너를 만듭니다.

참고

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

Syntax

New-AzureStorSimpleDeviceVolumeContainer
   -DeviceName <String>
   -VolumeContainerName <String>
   -PrimaryStorageAccountCredential <StorageAccountCredentialResponse>
   -BandWidthRateInMbps <Int32>
   [-EncryptionEnabled <Boolean>]
   [-EncryptionKey <String>]
   [-WaitForComplete]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

New-AzureStorSimpleDeviceVolumeContainer cmdlet은 볼륨 컨테이너를 만듭니다. 스토리지 계정 자격 증명을 새 볼륨 컨테이너와 연결해야 합니다. 스토리지 계정 자격 증명을 가져오려면 Get-AzureStorSimpleStorageAccountCredential cmdlet을 사용합니다.

예제

예제 1: 컨테이너 만들기

PS C:\>Get-AzureStorSimpleStorageAccountCredential -StorageAccountName "ContosoAccount" | New-AzureStorSimpleDeviceVolumeContainer -DeviceName "Contoso63-AppVm" -VolumeContainerName "Container08" -BandWidthRateInMbps 256
VERBOSE: ClientRequestId: 96a4ccd4-f2a9-4820-8bc8-e6b7b56dce0d_PS
VERBOSE: ClientRequestId: 90be20db-098a-4f2b-a6da-9da6f533a846_PS
VERBOSE: ClientRequestId: 410fd33a-8fa3-4ae5-a1bf-1b6da9b34ffc_PS
VERBOSE: Storage Access Credential with name ContosoAccount found! 
VERBOSE: ClientRequestId: 0a6d1008-ba1f-43b2-a424-9c86be2fb83b_PS
VERBOSE: ClientRequestId: 08f0d657-a130-4a25-8090-270c58b479dc_PS
VERBOSE: ClientRequestId: 0f3e894a-b031-467c-a258-41b74c89cf18_PS
5b192120-9df0-40ed-b75e-b4e728bd37ef
VERBOSE: The create task is submitted successfully. Please use the command Get-AzureStorSimpleTask -InstanceId
5b192120-9df0-40ed-b75e-b4e728bd37ef for tracking the task's status

이 명령은 Get-AzureStorSimpleStorageAccountCredential cmdlet을 사용하여 ContosoAccount라는 계정에 대한 스토리지 계정 자격 증명을 가져옵니다. 이 명령은 파이프라인 연산자를 사용하여 현재 cmdlet에 자격 증명을 전달합니다. 이 cmdlet은 해당 cmdlet의 자격 증명을 사용하여 Contoso63-AppVm이라는 디바이스에 Container08이라는 컨테이너를 만듭니다. 이 명령은 작업을 시작한 다음 TaskResponse 개체를 반환합니다. 작업의 상태를 보려면 Get-AzureStorSimpleTask cmdlet을 사용합니다.

매개 변수

-BandWidthRateInMbps

초당 메가비트(Mbps)로 대역폭 속도를 지정합니다.

Type:Int32
Aliases:CloudBandwidthInMbps
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DeviceName

볼륨 컨테이너를 만들 StorSimple 디바이스의 이름을 지정합니다.

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

-EncryptionEnabled

암호화를 사용할지 여부를 나타냅니다.

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

-EncryptionKey

암호화 키를 지정합니다.

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

-PrimaryStorageAccountCredential

새 볼륨 컨테이너와 연결할 자격 증명을 StorageAccountCredential 개체로 지정합니다. StorageAccountCredential 개체를 가져오려면 Get-AzureStorSimpleStorageAccountCredential cmdlet을 사용합니다.

Type:StorageAccountCredentialResponse
Aliases:StorageAccount
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Profile

Azure 프로필을 지정합니다.

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

-VolumeContainerName

만들 볼륨 컨테이너의 이름을 지정합니다.

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

-WaitForComplete

이 cmdlet은 Windows PowerShell 콘솔에 컨트롤을 반환하기 전에 작업이 완료될 때까지 기다립니다.

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

입력

StorageAccountCredential

이 cmdlet은 볼륨 컨테이너와 연결할 PrimaryStorageAccountCredential 개체를 허용합니다.

출력

TaskStatusInfo

WaitForComplete 매개 변수를 지정하는 경우 이 cmdlet은 TaskStatusInfo 개체를 반환합니다.