Questions tagged [sas-token]

A shared access signature token (SAS token)

From: https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview

A shared access signature (SAS) provides secure delegated access to resources in your storage account without compromising the security of your data. With a SAS token, you have granular control over how a client can access your data. You can control what resources the client may access, what permissions they have on those resources, and how long the SAS is valid, among other parameters.

How a shared access signature works A shared access signature is a signed URI that points to one or more storage resources and includes a token that contains a special set of query parameters. The token indicates how the resources may be accessed by the client. One of the query parameters, the signature, is constructed from the SAS parameters and signed with the key that was used to create the SAS. This signature is used by Azure Storage to authorize access to the storage resource.

93 questions
0
votes
1 answer

How/When should I generate a Azure datalake g2 SAS-Token?

I'm working on a project in Python that uses the azure.storage.filedatalake module in order to upload files to my gen 2 datalake. In my project I'm using the URL for these files (as they are mostly images I need to serve to a frontend webpage). In…
0
votes
1 answer

How to generate SAS token using Access policy for a container of ADLS gen 2

How to generate SAS token using Access policy for a folder in container of ADLS gen 2. exactly like below image but for ADLS gen 2 containers or folders. thank you in advance.
0
votes
2 answers

Restrict permission when client create a sastoken for a blobstorage

I have a blobstorage where I drop files for an external partner to list the files and read them. I thought that a SAS token would be a perfect way for the external partner to access the container and read the file(s). So I created a SAS token and…
Magnus Gladh
  • 1,817
  • 4
  • 20
  • 31
0
votes
2 answers

Creating SAS token with ARM template: error InvalidValuesForRequestParameters

I am trying to generate a SAS token from an ARM template, to allow my template to subsequently access resources in a blob storage (including linked templates). The SAS token is supposed to be stored in a vault I'm also creating in this template. The…
0
votes
1 answer

The remote server returned an error: (404) Not Found. while using sas token from blob storage

I have an application to upload files to azure blob storage. I have initially used connection string to upload and download file from blob storage. Now, I need to use sas token for upload and download files from blob, but i'm getting "The remote…
0
votes
1 answer

I'm trying to build an Azure Function which receives dataset names, then proceeds to connect to and download files from Azure Datalake (to local disk)

I've deployed an Azure function successfully, can pass data inputs into that function and operate on that data. My objective is to capture these inputs (table names of the datasets the user requires) and then download these datasets from Blob…
0
votes
1 answer

Error generating Azure container SAS token using Python SDK

I am trying to generate a container SAS token using the Python SDK for Azure. With the code below, I am getting this error: AuthenticationErrorDetail:Signature fields not well formed. The generated token seems to have the time formatted incorrectly…
asguldbrandsen
  • 163
  • 1
  • 2
  • 13
0
votes
1 answer

Azure-blob-storage. Get access to container with SAS token

I'm trying to get access to blob storage container, this is my code: from datetime import datetime from azure.storage.blob import BlobServiceClient from azure.storage.blob import generate_container_sas from azure.storage.blob import…
Jose
  • 495
  • 1
  • 4
  • 13
0
votes
2 answers

How do I form an SAS token for Microsoft Azure API Management's REST API in Node.js?

I am using Microsoft Azure API Management service and want to use the REST API service. In creating my SAS token, which is needed otherwise the API call doesn't authorize, I'm having difficulty forming a proper token. Microsoft's webpage about this…
Averroes
  • 29
  • 3
0
votes
1 answer

Azure Storage: AuthorizationPermissionMismatch when a SAS with Create permission is used

I'm uploading large blobs in blocks of 1MB to Azure Storage. This works when I create a SAS with a Write permission, but it throws the below error with a Create permission. ErrorCode: AuthorizationPermissionMismatch This request is not authorized…
user246392
  • 2,661
  • 11
  • 54
  • 96
0
votes
1 answer

How to Download latest file in Azure storage using azcopy to a local system

I am new to azure storage. In the azure storage i have a container and i have multiple directory and i have sub directory inside the container. Sub directory contains multiple files. I need to download the latest file from the sub directory. As of…
Kanagam bala
  • 83
  • 1
  • 9
0
votes
1 answer

LAD 3.0 Failing to connect to Storage Account using SASToken

I'm currently trying to deploy through an ARM template the Linux Extension LAD. Following the documentation, the extension needs a SasToken and a storage account with table capacity in order to work. I deploy the Storage Account before I call a…
0
votes
1 answer

In the Azure Python SDK, is it possible to generate SAS tokens specific to a ServiceBus topic?

I'm using Python 3.8 and azure-servicebus v0.50.3. I would like to generate a read-only SAS token for each topic i create. I have figured out so far I can create the topics like so ... sbs = ServiceBusService(service_namespace, …
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
1 answer

How can i determine if a SAS Token has already expired for Azure Blob Storage Container Access?

i use Azure Blob Storage Client Libary v11 for .Net. I wrote a program that our customers can use to upload files. I generate a URL with a SAS Token (valid for x Days) for our customer and the customer can upload files using the program. Here is an…
d1no
  • 143
  • 3
  • 14
0
votes
1 answer

access linked htm files from within the first htm file using only 1 SAS token

I have a bunch of .htm files, which have navigations within to other .htm files. I have uploaded them to Azure blob container. I want to open the first .htm file with SAS token, and would like to access others through it. However when this is…