Skip to content

Managed Identity

Use system-assigned managed identity for passwordless access to Azure resources from functions.

flowchart LR
    A[Trigger] --> B[Function]
    B --> C[Binding or SDK]
    C --> D[Azure service]

Topic/Command Groups

Enable identity

az functionapp identity assign   --name "$APP_NAME"   --resource-group "$RG"

Access Storage SDK with DefaultAzureCredential

var credential = new DefaultAzureCredential();
var blobService = new BlobServiceClient(new Uri($"https://{storageName}.blob.core.windows.net"), credential);

See Also

Sources