You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ResourceManager/KeyVault/Commands.KeyVault/Commands/ManagedStorageAccounts/RemoveAzureKeyVaultManagedStorageAccount.cs
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.
38
38
39
+
### Example 3: Permanently delete (purge) a Key Vault managed Azure Storage Account and all associated SAS definitions from a soft-delete-enabled vault.
The example assumes that soft-delete is enabled for this vault. Verify whether that is the case by examining the vault properties, or the RecoveryLevel attribute of an entity in the vault.
47
+
The first cmdlet 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.
48
+
The second cmdlet verifies that the storage account is in a deleted, but recoverable state. Reaching this state may require some time, please allow ~30s before attempting.
49
+
The third cmdlet permanently removes the storage account - recovery will no longer be possible.
50
+
39
51
## PARAMETERS
40
52
41
53
### -AccountName
@@ -83,6 +95,19 @@ Accept pipeline input: False
83
95
Accept wildcard characters: False
84
96
```
85
97
98
+
### -InRemovedState
99
+
Permanently remove the previously deleted managed storage account.```yaml
100
+
Type: SwitchParameter
101
+
Parameter Sets: (All)
102
+
Aliases:
103
+
104
+
Required: False
105
+
Position: Named
106
+
Default value: None
107
+
Accept pipeline input: False
108
+
Accept wildcard characters: False
109
+
```
110
+
86
111
### -PassThru
87
112
Cmdlet does not return an object by default.
88
113
If this switch is specified, cmdlet returns the managed storage account that was deleted.
0 commit comments