Skip to content

Commit 3fded16

Browse files
authored
Merge pull request #86986 from tamram/tamram-0828
add user delegation sas revocation to CLI how-to
2 parents 38893df + 5abdf3c commit 3fded16

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

articles/storage/blobs/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
href: ../common/storage-account-sas-create-dotnet.md?toc=%2fazure%2fstorage%2fblobs%2ftoc.json
353353
- name: Define a stored access policy
354354
href: ../common/storage-stored-access-policy-define-dotnet.md?toc=%2fazure%2fstorage%2fblobs%2ftoc.json
355-
- name: Configure customer-managed keys for service encryption
355+
- name: Use customer-managed keys for service encryption
356356
items:
357357
- name: Portal
358358
href: ../common/storage-encryption-keys-portal.md?toc=%2fazure%2fstorage%2fblobs%2ftoc.json

articles/storage/blobs/storage-blob-user-delegation-sas-create-cli.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: tamram
66

77
ms.service: storage
88
ms.topic: article
9-
ms.date: 08/12/2019
9+
ms.date: 08/29/2019
1010
ms.author: tamram
1111
ms.reviewer: cbrooks
1212
ms.subservice: blobs
@@ -57,7 +57,7 @@ When creating a user delegation SAS, the `--auth-mode login` and `--as-user para
5757

5858
### Create a user delegation SAS for a container
5959

60-
To create a user delegation SAS for a container with Azure CLI, call the [az storage container generate-sas](/cli/azure/storage/container#az-storage-container-generate-sas) command.
60+
To create a user delegation SAS for a container with the Azure CLI, call the [az storage container generate-sas](/cli/azure/storage/container#az-storage-container-generate-sas) command.
6161

6262
Supported permissions for a user delegation SAS on a container include Add, Create, Delete, List, Read, and Write. Permissions can be specified singly or combined. For more information about these permissions, see [Create a user delegation SAS](/rest/api/storageservices/create-user-delegation-sas).
6363

@@ -81,7 +81,7 @@ se=2019-07-27&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sktid=<sktid>&skt=2019-07-26
8181

8282
### Create a user delegation SAS for a blob
8383

84-
To create a user delegation SAS for a blob with Azure CLI, call the [az storage blob generate-sas](/cli/azure/storage/blob#az-storage-blob-generate-sas) command.
84+
To create a user delegation SAS for a blob with the Azure CLI, call the [az storage blob generate-sas](/cli/azure/storage/blob#az-storage-blob-generate-sas) command.
8585

8686
Supported permissions for a user delegation SAS on a blob include Add, Create, Delete, Read, and Write. Permissions can be specified singly or combined. For more information about these permissions, see [Create a user delegation SAS](/rest/api/storageservices/create-user-delegation-sas).
8787

@@ -109,6 +109,21 @@ https://storagesamples.blob.core.windows.net/sample-container/blob1.txt?se=2019-
109109
> [!NOTE]
110110
> A user delegation SAS does not support defining permissions with a stored access policy.
111111
112+
## Revoke a user delegation SAS
113+
114+
To revoke a user delegation SAS from the Azure CLI, call the [az storage account revoke-delegation-keys](/cli/azure/storage/account#az-storage-account-revoke-delegation-keys) command. This command revokes all of the user delegation keys associated with the specified storage account. Any shared access signatures associated with those keys are invalidated.
115+
116+
Remember to replace placeholder values in angle brackets with your own values:
117+
118+
```azurecli-interactive
119+
az storage account revoke-delegation-keys \
120+
--name <storage-account> \
121+
--resource-group <resource-group>
122+
```
123+
124+
> [!IMPORTANT]
125+
> Both the user delegation key and RBAC role assignments are cached by Azure Storage, so there may be a delay between when you initiate the process of revocation and when an existing user delegation SAS becomes invalid.
126+
112127
## Next steps
113128

114129
- [Create a user delegation SAS (REST API)](/rest/api/storageservices/create-user-delegation-sas)

articles/storage/blobs/storage-blob-user-delegation-sas-create-powershell.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: tamram
66

77
ms.service: storage
88
ms.topic: article
9-
ms.date: 08/12/2019
9+
ms.date: 08/29/2019
1010
ms.author: tamram
1111
ms.reviewer: cbrooks
1212
ms.subservice: blobs
@@ -161,6 +161,9 @@ Revoke-AzStorageAccountUserDelegationKeys -ResourceGroupName <resource-group> `
161161
-StorageAccountName <storage-account>
162162
```
163163

164+
> [!IMPORTANT]
165+
> Both the user delegation key and RBAC role assignments are cached by Azure Storage, so there may be a delay between when you initiate the process of revocation and when an existing user delegation SAS becomes invalid.
166+
164167
## Next steps
165168

166169
- [Create a user delegation SAS (REST API)](/rest/api/storageservices/create-user-delegation-sas)

0 commit comments

Comments
 (0)