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: articles/storage/blobs/storage-blob-user-delegation-sas-create-cli.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: tamram
6
6
7
7
ms.service: storage
8
8
ms.topic: article
9
-
ms.date: 08/12/2019
9
+
ms.date: 08/29/2019
10
10
ms.author: tamram
11
11
ms.reviewer: cbrooks
12
12
ms.subservice: blobs
@@ -57,7 +57,7 @@ When creating a user delegation SAS, the `--auth-mode login` and `--as-user para
57
57
58
58
### Create a user delegation SAS for a container
59
59
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.
61
61
62
62
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).
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.
85
85
86
86
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).
> A user delegation SAS does not support defining permissions with a stored access policy.
111
111
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
+
112
127
## Next steps
113
128
114
129
-[Create a user delegation SAS (REST API)](/rest/api/storageservices/create-user-delegation-sas)
> 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
+
164
167
## Next steps
165
168
166
169
-[Create a user delegation SAS (REST API)](/rest/api/storageservices/create-user-delegation-sas)
0 commit comments