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

SAS token generation for calling azure rest API in JAVA

I am trying to generate an SAS token using the code snippet given in the azure IoT Hub documentation, to call a GET devices API in IoT Hub(https://iot-hub-name.azure-devices.net/devices?api-version=2020-03-13). The code is private static String…
Rakesh S
  • 31
  • 2
0
votes
2 answers

Powershell HTTP Post to Service Bus Queue returns 401

Trying to submit a message to a service bus queue I have set up, and keep getting a 401 Unauthorized return. I've tried configuring the SAS token myself using this method $ResourceGroupName = 'myResourceGroup' $NameSpaceName =…
0
votes
2 answers

Azure - API Management - Management API SAS token expiry

We have an API management instance in azure.We have also enabled the management API. There we have set a SAS token & that has been used in the application. Here, we have to change the SAS token in every 30 days. If the token is expired, that will…
0
votes
1 answer

Azure SAS Token issues

Can these issues be sorted out or any feedback comments welcome. Using for the Azcopy the SAS token can this be done without SAS token or way out which this operation can be performed in another alternative Suggestions on the expiry time to be set…
Anirudh B
  • 39
  • 6
0
votes
1 answer

Azure blob sasToken “Signature did not match” (java)

Hello I try to create a SAS to a blob on azure storage in java. I write the following code: public static String GSAS(String url, String signedstart, String signedexpiry) throws Exception { String accountName = "taelearninguat2"; …
0
votes
1 answer

Problems with generating SAS manually for blob file

I'm trying to make a downloader attached to the service bus that is going to download the files from blob storage. But I'm having some problems with generating the SAS token manually, please se the error message below. I'm getting error…
Script0r
  • 117
  • 9
0
votes
1 answer

AuthenticationFailed after creating sas token with New-AzStorageBlobSASToken

I am creating a SAS token: $start = [System.DateTime]::Now.AddMonths(-1) $end = [System.DateTime]::Now.AddMonths(1) $cloudConfigSas = New-AzStorageBlobSASToken -Container "myContainer" -Blob "myBlob" -Permission "rwd" -Protocol HttpsOnly -StartTime…
Razoll
  • 107
  • 1
  • 1
  • 7
0
votes
1 answer

Azure Storage Account - error 403 forbidden

I have an Azure Function that should process files in a storage account container. The Azure Function should be triggered every day. But once or twice a week I see that some Files in the container are not processed: (At the beginning 401 files from…
Kaja
  • 2,962
  • 18
  • 63
  • 99
0
votes
3 answers

How to generate a single Account SAS for both container.listBlobs() and blob.exists()

I'm developing a Java application which executes the following methods with Account SAS (Shared Access Signature) URI: CLoudBlockBlob blob =…
0
votes
2 answers

Azure SAS token AuthorizationResourceTypeMismatch

I have created azure storage account. I have created file storage. I have generated SAS token. when I try to access file using sas token showing error "The remote server returned an error: (403) Forbidden." I am able to generate SAS token. when I…
user3404686
  • 131
  • 2
  • 10
0
votes
1 answer

Azure ARM template enabling Linux Diagnostic Extension with automatically generated SAS token

I'm trying to deploy arm template with New VM and setting up Linux Diagnostic Extension/LAD without the creation of new Storage account but using an existing one. I found this article https://samcogan.com/generate-sas-tokens-in-arm-teamplates/ to…
Hristo Stoychev
  • 405
  • 1
  • 5
  • 13
0
votes
2 answers

ComputerVision API doesn't allow BlobURL with SAS Token

I'm trying to analyse my images using Azure Computer Vision API (Azure Cognitive Service) But the issue is my Image is stored in Blob container with Private access which means without a SAS token it will not able to access. So when I tried to call…
0
votes
2 answers

SAS token as a SecureString not working with ARM template deployment using Azure PowerShell

I have a bunch of nested ARM templates meant to be deployed using Azure PS. The only way to do that is to host those templates in a Azure blob container and then generate SAS token and send these 2 parameters in the main ARM template (which points…
bit
  • 4,407
  • 1
  • 28
  • 50
0
votes
0 answers

Access Text File inside MVC Controller using SAS string passed from View

My Azure Storage Account has text files stored in a File Share. In a View, the user selects a file for 'processing', and my JavaScript routine passes the sas (.accessibleUri) up to the Controller function (i.e. Function ProcessDataFile). The…
0
votes
1 answer

How to set RetryPolicy using container SAS with Azure Java SDK?

I am implementing an Android app where I need to upload images to a blob container using a container SAS. Currently using the full endpoint credentials as a connection string, I can add a retry policy to my CloudBlobClient using the following…
Alexander Galkin
  • 12,086
  • 12
  • 63
  • 115