Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
How to connect to blob container using SAS url in javascript?

i want to connect straight to container not to storage account using container's url with SAS.

For now i have code that work:

private async getContainer() {   
    const blobServiceClient = new BlobServiceClient(this.props.sasToken);
    let baseContainer = blobServiceClient.getContainerClient(this.props.containerName);
    this.setState(state => ({ ...state, container: baseContainer }));
};

But in property this.props.sasToken i need to pass url to Storage account and container name.

Is it possible to connect to container using url with SAS only for this container? In Azure Storage Explorer it is possible but how to manage the same result programatically?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Please use ContainerClient(string, PipelineLike) constructor to create an instance of ContainerClient. You will pass the container SAS URL as the first parameter.

Your code would be something like:

let baseContainer = new ContainerClient(this.props.sasToken);
this.setState(state => ({ ...state, container: baseContainer }));
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!