Remove-AzureStorSimpleStorageAccountCredential
既存のストレージ アカウント資格情報を削除します。
注意
このドキュメントで参照されているコマンドレットは、Service Management API を使用するレガシ Azure リソースを管理するためのものです。 Azure Resource Manager リソースを管理するためのコマンドレットについては、Az PowerShell モジュールを参照してください。
構文
Remove-AzureStorSimpleStorageAccountCredential
-StorageAccountName <String>
[-WaitForComplete]
[-Force]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Remove-AzureStorSimpleStorageAccountCredential
-SAC <StorageAccountCredentialResponse>
[-WaitForComplete]
[-Force]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
説明
Remove-AzureStorSimpleStorageAccountCredential コマンドレットは、既存のストレージ アカウントの資格情報を削除します。 アカウントを名前で指定するか、Get-AzureStorSimpleStorageAccountCredential コマンドレットを使用して、削除する StorageAccountCredential オブジェクトを取得します。
例
例 1: ストレージ アカウントの資格情報を削除する
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
このコマンドは、ContosoStorage07 という名前のストレージ アカウントのアカウント資格情報を削除します。 このコマンドは Force パラメーターを指定します。 コマンドレットは、確認を求めずに資格情報を削除します。
例 2: パイプライン オペレーターを使用してストレージ アカウントの資格情報を削除する
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!
このコマンドは、Get-AzureStorSimpleStorageAccountCredential コマンドレットを使用して ContosoStorage07 という名前のストレージ アカウントを取得し、そのオブジェクトを現在のコマンドレットに渡します。 現在のコマンドレットは、そのストレージ アカウントの資格情報を削除します。 このコマンドは WaitForComplete パラメーターを指定します。 コマンドレットは、削除操作が完了するまで、コンソールにコントロールを返しません。
パラメーター
-Force
このコマンドレットが確認を求めないことを示します。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
Azure プロファイルを指定します。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SAC
削除する資格情報を StorageAccountCredential オブジェクトとして指定します。 StorageAccountCredential オブジェクトを取得するには、Get-AzureStorSimpleStorageAccountCredential コマンドレットを使用します。
Type: | StorageAccountCredentialResponse |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageAccountName
削除するストレージ アカウント資格情報の名前を指定します。
Type: | String |
Aliases: | Name |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WaitForComplete
このコマンドレットは、Windows PowerShell コンソールに制御を返す前に、操作が完了するまで待機することを示します。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
入力
StorageAccountCredential
このコマンドレットは、パイプラインを 使用して StorageAccountCredential オブジェクトを受け入れます。
出力
TaskStatusInfo
WaitForComplete パラメーターを 指定すると、このコマンドレットは TaskStatusInfo オブジェクトを 返 します。