This directory contains a Bicep deployment script to deploy the Azure resources required for the sample.
Tge following prerequisites must be installed before running the deployment script:
To deploy the sample infrastructure you must follow the steps below.
- 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.
-
After you've signed in to Azure, the terminal displays a list of the subscriptions associated with this account.
-
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
- Get the subscription ID. Running the following command lists your subscriptions and their IDs.
Get-AzSubscription
- Set your active subscription to the one you want to deploy the Sample into
Set-AzContext -SubscriptionId '<subscription-id>'
- Create a resource group to deploy the sample into
New-AzResourceGroup -Name '<resource-group-name>' -Location '<location>'
- Set the new resource group to be the active one
Set-AzDefault -ResourceGroupName '<resource-group-name>'
- 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.