The DAS-SDK package can be installed from a
PyPI repository hosted by Wapice.
This requires credentials that you can get from your contact person at Wapice.
Install using pip
pip install das --index-url=https://{username}:{password}@daspypi.westeurope.cloudapp.azure.com
Install to Azure Functions
Add the index url to Function App environment variables with the name PIP_EXTRA_INDEX_URL.
Use a key vault to store the url since it contains the credentials:
- Enable managed identity for the Azure Function App to access key vault:
- Navigate to the Function App -> Settings -> Identity -> Copy the Object ID (using System assigned identity)
- Navigate to the Key vault -> Access control (IAM) -> Add -> Add role assignment -> Paste the Object ID here
- Navigate to the Key vault -> Secrets -> Generate/Import -> Create a secret with the index url as the value
- Navigate to the Function App -> Settings -> Environment variables -> Add
Name: PIP_EXTRA_INDEX_URL
Value: @Microsoft.KeyVault(SecretUri=https://{keyvault name}.vault.azure.net/secrets/{secret name}/)
- Add
das=={version number} to the requirements.txt file for the function project