Remove-AzureStorSimpleStorageAccountCredential
Menghapus kredensial akun penyimpanan yang ada.
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
Remove-AzureStorSimpleStorageAccountCredential
-StorageAccountName <String>
[-WaitForComplete]
[-Force]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Remove-AzureStorSimpleStorageAccountCredential
-SAC <StorageAccountCredentialResponse>
[-WaitForComplete]
[-Force]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Deskripsi
Cmdlet Remove-AzureStorSimpleStorageAccountCredential menghapus kredensial akun penyimpanan yang ada. Tentukan akun berdasarkan nama atau gunakan cmdlet Get-AzureStorSimpleStorageAccountCredential untuk mendapatkan objek StorageAccountCredential untuk dihapus.
Contoh
Contoh 1: Menghapus kredensial akun penyimpanan
PS C:\>Remove-AzureStorSimpleStorageAccountCredential -StorageAccountName "ContosoStorage07" -Force
VERBOSE: ClientRequestId: 8e10d56b-ddb1-459b-b26e-a185f5a303de_PS
VERBOSE: About to create a job to remove your Storage Access Credential!
VERBOSE: ClientRequestId: 55cb6296-0156-4266-8591-d9e9bf8cc584_PS
982f4b19-ccb0-4ad3-9b02-f8ad25bf2e72
VERBOSE: The delete task is submitted successfully. Please use the command Get-AzureStorSimpleTask -InstanceId
982f4b19-ccb0-4ad3-9b02-f8ad25bf2e72 for tracking the task's status
Perintah ini menghapus kredensial akun untuk akun penyimpanan bernama ContosoStorage07. Perintah ini menentukan parameter Force . Cmdlet menghapus kredensial tanpa meminta konfirmasi kepada Anda.
Contoh 2: Menghapus kredensial akun penyimpanan dengan menggunakan operator alur
PS C:\>Get-AzureStorSimpleStorageAccountCredential -StorageAccountName "ContosoStorage07" | Remove-AzureStorSimpleStorageAccountCredential -Force -WaitForComplete
VERBOSE: ClientRequestId: f1b46216-bf4c-4c19-8e92-1dfe3894e258_PS
VERBOSE: ClientRequestId: 0d946f8f-c771-4ade-8a83-7c08dad86c52_PS
VERBOSE: ClientRequestId: 2000bab6-8311-4192-ad12-c67e35fc2697_PS
VERBOSE: Storage Access Credential with name ContosoStorage07 found!
VERBOSE: About to run a job to remove your Storage Access Credential!
VERBOSE: ClientRequestId: b803b165-bef8-4a8f-9509-4b515ea8bdec_PS
VERBOSE: Your delete operation completed successfully!
Perintah ini mendapatkan akun penyimpanan bernama ContosoStorage07 dengan menggunakan cmdlet Get-AzureStorSimpleStorageAccountCredential , lalu meneruskan objek tersebut ke cmdlet saat ini. Cmdlet saat ini menghapus kredensial untuk akun penyimpanan tersebut. Perintah ini menentukan parameter WaitForComplete . Cmdlet tidak mengembalikan kontrol ke konsol hingga menyelesaikan operasi penghapusan.
Parameter
-Force
Menunjukkan bahwa cmdlet ini tidak meminta konfirmasi kepada Anda.
Jenis: | SwitchParameter |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Profile
Menentukan profil Azure.
Jenis: | AzureSMProfile |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-SAC
Menentukan kredensial, sebagai objek StorageAccountCredential , untuk dihapus. Untuk mendapatkan objek StorageAccountCredential , gunakan cmdlet Get-AzureStorSimpleStorageAccountCredential .
Jenis: | StorageAccountCredentialResponse |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-StorageAccountName
Menentukan nama kredensial akun penyimpanan yang akan dihapus.
Jenis: | String |
Alias: | Name |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-WaitForComplete
Menunjukkan bahwa cmdlet ini menunggu operasi selesai sebelum mengembalikan kontrol ke konsol Windows PowerShell.
Jenis: | SwitchParameter |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
Input
StorageAccountCredential
Cmdlet ini menerima objek StorageAccountCredential dengan menggunakan alur.
Output
TaskStatusInfo
Cmdlet ini mengembalikan objek TaskStatusInfo , jika Anda menentukan parameter WaitForComplete .