Skip to main content

auth.py

Source: sunholo/azure/auth.py

Functions

azure_auth()

Will attempt to authenticate using default credentials first (e.g. you are running within Azure Container Apps or similar)

If default credentials are not available, will attempt to authenticate via env vars - set up via:

az ad sp create-for-rbac --name "myApp" --role contributor         --scopes /subscriptions/{subscription-id}/resourceGroups/{resource-group}         --sdk-auth

export AZURE_CLIENT_ID="your-client-id"
export AZURE_CLIENT_SECRET="your-client-secret"
export AZURE_TENANT_ID="your-tenant-id"
Sunholo Multivac

Get in touch to see if we can help with your GenAI project.

Contact us

Other Links

Sunholo Multivac - GenAIOps

Copyright ©

Holosun ApS 2024