This guide helps with downloading the code base and deploying the infrastructure.
Clone the following Project GitHub Repo to your local machine:
git clone https://github.com/Azure-Samples/Building-a-pipeline-for-processing-media-files-using-Azure-OpenAI-for-analysis
Infrastructure-as-Code (IaC) is located under src/terraform
folder and deployed using Terraform CLI. To learn more about Terraform see Get Started - Azure
- Azure Subscription with Admin level access.
- Azure CLI installed locally. Required Azure CLI version 2.20.0 or later. See Install Azure CLI for more details.
- Terraform installed locally. See Install Terraform for details.
It is required to login to Azure before deploying any resources. Open up cloned project with VS Code. Open a terminal window in VS Code and login to Azure:
- Type
az login
to login your Azure Cloud Account. - Set the right Azure Subscription if you have more then one subscription.
az account set --subscription <subscription-id>
Navigate to the src/terraform
folder in the terminal window. Type following Terraform command to deploy initial resources to the Azure. This command will deploy resources to the westus. Change it to your deployment location if it is different by update variables.tf
.
terraform plan
terraform apply
Note: It will take some time to deploy all of the resources. Once the deployment is complete you can verify all the deployed resource by going to Azure Portal.
Go to the next step to setup local development environment. Local Development Setup