git clone https://github.com/microsoft/Deploy-Your-AI-Application-In-Production.git
cd Deploy-Your-AI-Application-In-ProductionThis solution uses the Azure CLI and the Azure Developer CLI to quickly provision and deploy infrastructure and applications to Azure.
To get started, authenticate with an Azure Subscription (details):
azd auth loginAlso authenticate with the Azure CLI (details):
az loginEstablish a new environment. Provide a name that represents the application domain:
azd env new '<app name>'Optionally set environment variables via the following commands:
azd env set 'AZURE_VM_ADMIN_PASSWORD' '<secure password>'Optionally you can use the existing log analyitcs workspace if required.
Follow this guide to set the existing log analytics workspace Existing Workspace ID
To provision the necessary Azure resources and deploy the application, run the azd up command:
azd upThis will kick off an interactive console to provide required flags and parameters to deploy the infrastructure of a secure, WAF-aligned AI Foundry environment.
- This deployment will take 15-20 minutes to provision the resources in your account. If you get an error or timeout with deployment, changing the location can help, as there may be availability constraints for the resources.
- Note the
.envfile created at/.azure/<app name>. These are the environment configuration output from running theazd upcommand. These values are names of resources created as part of the baseline infrastructure.