Generate SAS URI
Generate SAS URI from the Azure portal
- Log in to the Microsoft Azure portal.
- In the left navigation pane of the Home page, click Storage accounts. Learn how to create storage account in Azure.
- Search for your specific storage account from the list and select the Storage account.
- Optional. If you want to upload a file to use it later while configuring the
File Reader Snap, follow these steps:
- Under Data storage, click on Containers.
- Select the container where your file is located and open it.
- Click Add directory to create a new virtual directory.
- Click Upload to upload a file to the container.
- Browse for files to select the file to upload to Azure Blob.
- Browse the file you want to upload and click Open.
- Click Upload to complete the file upload operation.
- In the Azure portal, navigate to Shared access signature under Security + networking.
- Configure the allowed services: Blob, File, Queue, and Table.
- Configure the allowed resource types: Service, Container, Object.
- Configure the allowed permissions: Read, Write, Delete, List, Add, Create, Update, Process, Immutable storage, Permanent delete.
- Set the start and expiry date and time.
- To read and upload WASB protocols, select the allowed protocols as HTTPS and HTTP.
- Select any key from the Signing key dropdown list.
- Click the Generate SAS and connection string button. The SAS URI is generated.
Note: You can configure the SAS URI in the File Reader Snap or in the Azure Storage Account.
If you provide the SAS URI in the File Reader Snap, the Snap overrides the value provided in
the account.
Configure the File Reader Snap with SAS URI
- Navigate to SnapLogic Designer, search for File Reader Snap, and drag it onto the canvas.
- Enter the File path using the format:
wasb:///container-name/folder/file-name. - Select SAS URI from the Properties dropdown.
- Copy the generated Blob service SAS URL generated earlier in the Azure portal.
Configure the Azure Storage Account with SAS URI
- In the File Reader Snap, click Add Account and select Azure Storage Account and click Continue.
- In the Account name field, provide the name of the account created in the Azure portal.
- Select SAS URI as the Auth type.
- Provide the Blob service SAS URL in the SAS URI field. The Snap is now configured with a valid Azure Storage Account.
- Click Validate to confirm the configuration is successful.
Note: If you provide the SAS URI in the Azure Storage Account, you do not have to provide one
in the File Reader Account.
Generate SAS URI from the SAS Generator Snap
- In the SnapLogic Designer, drag the SAS Generator Snap to the canvas.
- Add Azure Storage Account to the Snap.
- Configure the account.
- On the Auth type list, choose SAS URI.
- Provide the SAS URI obtained from the Azure portal.
- Click Apply.
- In the Snap settings, configure the following details:
- Container: Name of the container where the Azure Storage account is stored.
- Blob: Name of the blob.
- Protocol: Select the appropriate file protocol.
- SAS Permissions: Add READ, WRITE, LIST, and DELETE permissions.
- Optional. Provide the value for expiry either in hours or minutes.
- Connect the File Reader Snap downstream of the SAS Generator Snap.
- In the File Reader Snap, configure the Advanced properties.
- Choose SAS URI for properties and select the SAS URI coming from upstream (by
enabling the expression enabler) in the Values field.
