166k views
2 votes
List deleted Shared Access Signature (SAS) definitions for storage accounts using the Azure CLI.

User Stan Luo
by
8.1k points

1 Answer

0 votes

Final answer:

To list deleted Shared Access Signature (SAS) definitions for storage accounts using the Azure CLI, you can use the 'az storage account generate-sas' command with the '--deleted' option.

Step-by-step explanation:

To list deleted Shared Access Signature (SAS) definitions for storage accounts using the Azure CLI, you can use the 'az storage account generate-sas' command with the '--deleted' option. This command retrieves the deleted SAS definitions along with their details, such as expiration time, permissions, and resource group. Here is an example command:

az storage account generate-sas --account-name your_storage_account --services b --deleted --permissions c --expiry 2022-12-31T23:59Z.

In the above command, replace 'your_storage_account' with the name of your storage account and adjust the parameters according to your requirements. This will return the deleted SAS definitions for the specified storage account.

User Barry NL
by
7.4k points