< Back
Remove-AzureKeyVaultManagedStorageAccount
Post
NAME Remove-AzureKeyVaultManagedStorageAccount
SYNOPSIS
Removes a Key Vault managed Azure Storage Account and all associated SAS definitions.
SYNTAX
Remove-AzureKeyVaultManagedStorageAccount [-VaultName] <String> [-AccountName] <String> [-DefaultProfile <IAzureContextContainer>] [-Force]
[-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Disassociates an Azure Storage Account from Key Vault. This does not remove an Azure Storage Account but removes the account keys from being
managed by Azure Key Vault. All associated Key Vault managed Storage SAS definitions are also removed.
PARAMETERS
-AccountName <String>
Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected
environment and manged storage account name.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
Do not ask for confirmation.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-VaultName <String>
Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.KeyVault.Models.ManagedStorageAccount
NOTES
Example 1: Remove a Key Vault managed Azure Storage Account and all associated SAS definitions.
PS C:\\> Remove-AzureKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount'
Disassociates Azure Storage Account 'mystorageaccount' from Key Vault 'myvault' and stops Key Vault from managing its keys. The account
'mystorageaccount' will not be removed. All Key Vault managed Storage SAS definitions associated with this account will be removed.
Example 2: Remove a Key Vault managed Azure Storage Account and all associated SAS definitions without user confirmation.
PS C:\\> Remove-AzureKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -Force -Confirm:$False
Disassociates Azure Storage Account 'mystorageaccount' from Key Vault 'myvault' and stops Key Vault from managing its keys. The account
'mystorageaccount' will not be removed. All Key Vault managed Storage SAS definitions associated with this account will be removed.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ageaccount
https://msdn.microsoft.com/en-us/library/dn868052.aspx https://msdn.microsoft.com/en-us/library/dn868052.aspx
SYNOPSIS
Removes a Key Vault managed Azure Storage Account and all associated SAS definitions.
SYNTAX
Remove-AzureKeyVaultManagedStorageAccount [-VaultName] <String> [-AccountName] <String> [-DefaultProfile <IAzureContextContainer>] [-Force]
[-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Disassociates an Azure Storage Account from Key Vault. This does not remove an Azure Storage Account but removes the account keys from being
managed by Azure Key Vault. All associated Key Vault managed Storage SAS definitions are also removed.
PARAMETERS
-AccountName <String>
Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected
environment and manged storage account name.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
Do not ask for confirmation.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-VaultName <String>
Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.KeyVault.Models.ManagedStorageAccount
NOTES
Example 1: Remove a Key Vault managed Azure Storage Account and all associated SAS definitions.
PS C:\\> Remove-AzureKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount'
Disassociates Azure Storage Account 'mystorageaccount' from Key Vault 'myvault' and stops Key Vault from managing its keys. The account
'mystorageaccount' will not be removed. All Key Vault managed Storage SAS definitions associated with this account will be removed.
Example 2: Remove a Key Vault managed Azure Storage Account and all associated SAS definitions without user confirmation.
PS C:\\> Remove-AzureKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -Force -Confirm:$False
Disassociates Azure Storage Account 'mystorageaccount' from Key Vault 'myvault' and stops Key Vault from managing its keys. The account
'mystorageaccount' will not be removed. All Key Vault managed Storage SAS definitions associated with this account will be removed.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ageaccount
https://msdn.microsoft.com/en-us/library/dn868052.aspx https://msdn.microsoft.com/en-us/library/dn868052.aspx