Generate a SAS token

This article shows you how to generate a SAS token to a resource.

Azure portal

  1. In the Azure portal, open Storage accounts.

  2. Select the storage account that contains the resource for which you'd like to create a SAS token.

  3. From the left menu, select Containers.

  4. Right-click on the container for which you'd like to create a SAS token.

  5. From the context menu, select Generate SAS.

    Screenshot of Azure portal with Containers selected. Specific container is right-clicked and a menu opens. Generate SAS is selected from this menu.

  6. In the Generate SAS dialog, specify the Permissions, Start and expiry date/time, and Allowed IP addresses. Then, select Generate SAS token and URL

    Screen shot of the Generate SAS dialog with information filled in and Generate SAS token and URL selected.

    A new section displays at the bottom of the dialog, listing the blob SAS token and the blob SAS URL.

  7. Select the icon to the right of the blob SAS URL to copy it. Then, paste it to save or use it as required.

    Screenshot of Azure portal with blob SAS URL generated.