Share via

How to access to Azure BLOB Strage from Azure Functions(Python) using MSAL?

Makoto Oda 296 Reputation points
2022-12-17T15:30:18.417+00:00

I posted the same question to GitHub issue.

I refered this sample code.

I want to let Azure Function to authenticate by Azure Active Directory.

I cannot understand how to access to Azure BLOB Storage from Azure Functions using MSAL.
How do I configure scope and endpoint ?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. Umang Middha 555 Reputation points
    2023-01-31T10:56:06.4366667+00:00

    Hello Makoto,

    Hope you are doing well today. To access Azure Blob Storage from Azure Functions using MSAL, you need to follow these steps:

    1. Register an Azure Active Directory application: Go to the Azure portal and register a new Azure AD application. This will give you the necessary client ID and tenant ID to configure MSAL.
    2. Configure MSAL: In your Azure Functions code, use the MSAL library to authenticate with Azure AD and obtain an access token. You can configure the scope and endpoint.

    Use the access token: Once you have the access token, you can use it to authenticate with Azure Blob Storage and perform operations like reading or writing data.

    Please let me know if you want any assistance with the same.

    Regards,

    Umang Middha

    ******@outlook.com


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.