New-AzureStorSimpleInlineStorageAccountCredential
建立內嵌記憶體帳戶認證。
注意
本文件中參考的 Cmdlet 用於管理使用 Azure Service Manager(ASM) API 的舊版 Azure 資源。 建立新的資源時,不建議使用此舊版 PowerShell 模組,因為 ASM 已排定淘汰。 如需詳細資訊,請參閱 Azure Service Manager 淘汰。
Az PowerShell 模組是使用 PowerShell 管理 Azure Resource Manager (ARM) 資源的建議 PowerShell 模組。
語法
New-AzureStorSimpleInlineStorageAccountCredential
-StorageAccountName <String>
-StorageAccountKey <String>
[-Endpoint <String>]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
New-AzureStorSimpleInlineStorageAccountCredential Cmdlet 會建立內嵌 Azure 記憶體帳戶認證物件。 此 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 記憶體端點。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Profile
指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設配置檔讀取。
類型: | AzureSMProfile |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-StorageAccountKey
以純文字指定記憶體帳戶的帳戶的帳戶金鑰。 金鑰會以加密格式傳輸。
類型: | String |
別名: | Key |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-StorageAccountName
指定現有記憶體帳戶的名稱。
類型: | String |
別名: | Name |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None
輸出
StorageAccountCredentialResponse
此 Cmdlet 會傳 回 CloudType 物件,其中包含下列欄位:
- Hostname。 字串。
- InstanceId。 字串。
- IsDefault。 Boolean (布林值)。
- 位置。 字串。
- 登入。 字串。
- 名稱. 字串。
- OperationInProgress。 OperationInProgress。
- 密碼: 字串。
- PasswordEncryptionCertThumbprint。 字串。
- UseSSL。 Boolean (布林值)。
- VolumeCount。 Integer (整數)。