New-AzureStorSimpleInlineStorageAccountCredential
Membuat kredensial akun penyimpanan sebaris.
Catatan
Cmdlet yang dirujuk dalam dokumentasi ini adalah untuk mengelola sumber daya Azure warisan yang menggunakan API Azure Service Manager (ASM). Modul PowerShell warisan ini tidak disarankan saat membuat sumber daya baru karena ASM dijadwalkan untuk dihentikan. Untuk informasi selengkapnya, lihat Penghentian Azure Service Manager.
Modul Az PowerShell adalah modul PowerShell yang direkomendasikan untuk mengelola sumber daya Azure Resource Manager (ARM) dengan PowerShell.
Sintaks
New-AzureStorSimpleInlineStorageAccountCredential
-StorageAccountName <String>
-StorageAccountKey <String>
[-Endpoint <String>]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Deskripsi
Cmdlet New-AzureStorSimpleInlineStorageAccountCredential membuat objek kredensial akun penyimpanan Azure sebaris. Cmdlet ini membuat objek kredensial dummy. Anda dapat menggunakan cmdlet New-AzureStorSimpleDeviceVolumeContainer dan cmdlet saat ini dalam perintah yang sama dengan menggunakan alur Windows PowerShell. Objek kredensial akun penyimpanan aktual dibuat sebagai bagian dari pembuatan kontainer volume.
Contoh
Contoh 1: Membuat info masuk akun penyimpanan sebaris
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
Perintah ini membuat info masuk akun penyimpanan sebaris, lalu meneruskannya ke cmdlet New-AzureStorSimpleDeviceVolumeContainer dengan menggunakan operator alur. Kontainer tersebut menggunakan kredensial dummy untuk membuat kontainer volume.
Parameter
-Endpoint
Menentukan titik akhir penyimpanan Azure untuk akun penyimpanan.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Profile
Menentukan profil Azure tempat cmdlet ini dibaca. Jika Anda tidak menentukan profil, cmdlet ini akan membaca dari profil default lokal.
Jenis: | AzureSMProfile |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-StorageAccountKey
Menentukan kunci akun akun penyimpanan dalam teks biasa. Kunci ditransfer dalam format terenkripsi.
Jenis: | String |
Alias: | Key |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-StorageAccountName
Menentukan nama akun penyimpanan yang sudah ada.
Jenis: | String |
Alias: | Name |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
Input
None
Output
StorageAccountCredentialResponse
Cmdlet ini mengembalikan objek CloudType , yang berisi bidang berikut:
- Hostname. String.
- InstanceId. String.
- IsDefault. Boolean.
- Lokasi. String.
- Masuk. String.
- Nama. String.
- OperationInProgress. OperationInProgress.
- Kata sandi. String.
- PasswordEncryptionCertThumbprint. String.
- GunakanSSL. Boolean.
- VolumeCount. Bilangan bulat.