Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 2.46 KB

1-infrastructure-deployment.md

File metadata and controls

59 lines (38 loc) · 2.46 KB

Infrastructure Deployment and Configuration

This guide helps with downloading the code base and deploying the infrastructure.

Table of contents

  1. Pulling the Code
  2. Infrastructure Deployment
    1. Prerequisites
    2. Setup and Deploy resources
      1. Pre-deployment step
      2. Deploy Resources
  3. Next steps

Pulling the Code

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 Deployment

Infrastructure-as-Code (IaC) is located under src/terraform folder and deployed using Terraform CLI. To learn more about Terraform see Get Started - Azure

Prerequisites

  • 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.

Setup and Deploy resources

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:

Pre-deployment step

  1. Type az login to login your Azure Cloud Account.
  2. Set the right Azure Subscription if you have more then one subscription.
az account set --subscription <subscription-id>

Deploy Resources

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.

Next steps

Go to the next step to setup local development environment. Local Development Setup