다음을 통해 공유


New-AzureStorSimpleInlineStorageAccountCredential

인라인 스토리지 계정 자격 증명을 만듭니다.

참고

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

Syntax

New-AzureStorSimpleInlineStorageAccountCredential
   -StorageAccountName <String>
   -StorageAccountKey <String>
   [-Endpoint <String>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

New-AzureStorSimpleInlineStorageAccountCredential cmdlet은 인라인 Azure Storage 계정 자격 증명 개체를 만듭니다. 이 cmdlet은 더미 자격 증명 개체를 만듭니다. Windows PowerShell 파이프라인을 사용하여 동일한 명령에서 New-AzureStorSimpleDeviceVolumeContainer cmdlet 및 현재 cmdlet을 사용할 수 있습니다. 실제 스토리지 계정 자격 증명 개체는 볼륨 컨테이너를 만드는 과정의 일부로 만들어집니다.

예제

예제 1: 스토리지 계정 자격 증명 인라인 만들기

PS C:\>New-AzureStorSimpleInlineStorageAccountCredential -Name "contoso76" -Key x6o/tpZh8Coo8Tteo0NHLksTOKr/P9Vufo0LZNGdPGVTSUu00/p6ta1w9gRbVBNjzN8aa504kH2zkEsfUme+kw== | New-AzureStorSimpleDeviceVolumeContainer -Name "VolumeContainer_06" -DeviceName Contoso_App3 -BandWidthRate 256 -EncryptionEnabled $True -EncryptionKey "Key22" -WaitForComplete
VERBOSE: ClientRequestId: 535d24d5-1ed8-4759-92b2-dd492f94e23e_PS
VERBOSE: ClientRequestId: f32fc069-96c9-4fd9-a71a-0e62d81f25d8_PS
VERBOSE: ClientRequestId: 4376a931-89f5-448f-92bd-b2f7234244c9_PS
VERBOSE: ClientRequestId: 980109d4-7d76-40d0-ae3c-db539e2cb486_PS
VERBOSE: Encryption in progress... 
VERBOSE: Creating StorageAccountCredential inline
VERBOSE: Found storage account with name : contoso76
VERBOSE: Storage credential verification succeeded. 
VERBOSE: Encryption in progress... 
VERBOSE: ClientRequestId: d4f8a5de-bf81-4773-b6e6-edb034284cf4_PS


JobId        : 2dec64d3-b30d-4d35-adb3-12689b235b79
JobResult    : Succeeded
JobStatus    : Completed
ErrorCode    : 
ErrorMessage : 
JobSteps     : {Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStep, 
               Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStep}

VERBOSE: The job created for your create operation has completed successfully. 
VERBOSE: ClientRequestId: abd4082a-2eda-42ad-8cb3-5864dd2f7d1f_PS
BandwidthRate                   : 256
EncryptionKey                   : SK23I39L7GvoLce7u63TMT/A/V/TW8JXe+PoXKEKzwsr3t/h7tdqV1EpfaK0DGO/qo5b2PLCagFHAxnZEiejg
                                  jtF9TcyK+aLyzEnkqtM+eNRJmgANzJ9C/5L6Ubp+eSWiy+U/pyZygxPrb37e0yFg+qbHV9R9Qi+afBpHD9Gsi
                                  rhURuOc/idWG29eaEifuRzn/zEjvwJ2pEyYLcsuL+ftfRYZom69XO+cRDv5yT3xdNI/dAod/5YUaf1IhJl8wR
                                  cWjqyr00NxlCI03hTgH2sFyTFZWc07S2KI5K5n3rmCL6vGT76SRgNFeUxGz3v06/VoBhdmv9vDfrEz5UkW04d
                                  Qw==
InstanceId                      : a72bf4bb-0f0a-4ec2-a8b1-c4548825f522
IsDefault                       : False
IsEncryptionEnabled             : True
Name                            : VolumneContainer_06
OperationInProgress             : None
Owned                           : True
PrimaryStorageAccountCredential : Microsoft.WindowsAzure.Management.StorSimple.Models.StorageAccountCredentialResponse
SecretsEncryptionThumbprint     : 
VolumeCount                     : 0

이 명령은 스토리지 계정 자격 증명 인라인을 만든 다음 파이프라인 연산자를 사용하여 New-AzureStorSimpleDeviceVolumeContainer cmdlet에 전달합니다. 해당 컨테이너는 더미 자격 증명을 사용하여 볼륨 컨테이너를 만듭니다.

매개 변수

-Endpoint

스토리지 계정에 대한 Azure Storage 엔드포인트를 지정합니다.

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

-StorageAccountKey

스토리지 계정의 계정 키를 일반 텍스트로 지정합니다. 키는 암호화된 형식으로 전송됩니다.

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

-StorageAccountName

기존 스토리지 계정의 이름을 지정합니다.

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

입력

None

출력

StorageAccountCredentialResponse

이 cmdlet은 다음 필드를 포함하는 CloudType 개체를 반환합니다.

  • 호스트 이름. 문자열입니다.
  • InstanceId. 문자열입니다.
  • IsDefault. 부울.
  • 위치. 문자열입니다.
  • 로그인합니다. 문자열입니다.
  • 이름. 문자열입니다.
  • OperationInProgress. OperationInProgress.
  • 암호. 문자열입니다.
  • PasswordEncryptionCertThumbprint. 문자열입니다.
  • UseSSL. 부울.
  • VolumeCount. 정수.