Skip to content

Files

68 lines (44 loc) · 2.15 KB

File metadata and controls

68 lines (44 loc) · 2.15 KB

Deployment

This directory contains a Bicep deployment script to deploy the Azure resources required for the sample.

Prerequisites

Tge following prerequisites must be installed before running the deployment script:

Deployment

To deploy the sample infrastructure you must follow the steps below.

  1. In the Visual Studio Code window, open the Bicep folder and run the following command:
Connect-AzAccount

a browser will open and you will be prompted to login to your Azure account.

  1. After you've signed in to Azure, the terminal displays a list of the subscriptions associated with this account.

  2. Set the default subscription for all of the Azure PowerShell commands that you run in this session.

$context = Get-AzSubscription -SubscriptionName '[your-subscription-name]'
Set-AzContext $context
  1. Get the subscription ID. Running the following command lists your subscriptions and their IDs.
Get-AzSubscription
  1. Set your active subscription to the one you want to deploy the Sample into
Set-AzContext -SubscriptionId '<subscription-id>'
  1. Create a resource group to deploy the sample into
  New-AzResourceGroup -Name '<resource-group-name>' -Location '<location>'
  1. Set the new resource group to be the active one
Set-AzDefault -ResourceGroupName '<resource-group-name>'
  1. Deploy the sample
  New-AzResourceGroupDeployment -TemplateFile ./deployment.bicep

You can verify the deployment by navigating to the resource group in the Azure portal and looking in the "Deployments Blade".

Once you have completed this you will need to deploy the API and UI Container to Azure using the steps below.

API Deployment

UI Deployment