你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Generate a SAS token

Applies to: ✅ Microsoft FabricAzure Data Explorer

This article shows you how to generate a SAS token to a storage resource. You can generate SAS tokens for containers and individual blobs.

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. Navigate to the container, or drill down to the individual blob for which you'd like to create a SAS token.

  5. Right-click on the container or blob and select Generate SAS from the context menu.

    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, select Read and List permissions for containers, or Read for individual blobs. Optionally, specify the Start and expiry date/time and Allowed IP addresses. For more information about the optional parameters, see best practices when authorizing using SAS. Then select Generate SAS token and URL.

    Screenshot 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. Copy the Blob SAS URL value and save or use it as required.

    Screenshot of Azure portal with blob SAS URL generated.