To jump straight to deploying Ok.py to Azure without reading the integration guide click here.
The Azure Active Directory login can be enabled by setting the following environment variables:
MICROSOFT_TENANT_ID={TenantName}.onmicrosoft.com
MICROSOFT_APP_SECRET={ActiveDirectoryAppSecret}
MICROSOFT_APP_ID={ActiveDirectoryAppId}
To create and App registration follow this guide: https://docs.microsoft.com/en-gb/azure/active-directory/develop/active-directory-integrating-applications
The App registration reply URL needs to be set to: http(s)://<FQDN>/login/authorized/
Your Azure AD administrator may have to grant consent to the application as per: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-devhowto-multi-tenant-overview#understanding-user-and-admin-consent
The Azure MySQL database can be enabled by setting the following environment variables:
DATABASE_URL=mysql://{UserName}@{ServerName}:{Password}@{ServerName}.mysql.database.azure.com:3306/{DatabaseName}?
DB_ROW_FORMAT=DEFAULT
The Azure Storage backend can be enabled by setting the following environment variables:
STORAGE_PROVIDER=AZURE_BLOBS
STORAGE_KEY={AzureStorageAccountName}
STORAGE_SECRET={AzureStorageSecretKey}
STORAGE_CONTAINER=okpyfiles
The Azure Redis Cache can be enabled by setting the following environment variables:
REDIS_URL=rediss://:{Password}@{CacheName}.redis.cache.windows.net:6380/0
The Azure Application Insights logging and telemetry monitoring can be enabled by setting the following environment variables:
APPINSIGHTS_INSTRUMENTATIONKEY={InstrumentationKey}