MicrosoftLearning / MicrosoftLearning/mslearn-postgresql

AI-3019 | All Labs | Issue: Unable to perform deployment using Bicep template | mslearn-postgresql/tree/main/Instructions/Labs

Open
#41 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Bicep
Stars
15
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Hello Team,

We are facing issues while executing the Bicep deployment script which provisions the Azure services into the resource group. This script is used in all the labs for AI-3019 and the resources deployed include an Azure Database for PostgreSQL flexible server, Azure OpenAI, and an Azure AI Language service.

Script: az deployment group create --resource-group $RG_NAME --template-file "mslearn-postgresql/Allfiles/Labs/Shared/deploy.bicep" --parameters restore=false adminLogin=pgAdmin adminLoginPassword=$ADMIN_PASSWORD

Error:

Image

The error message suggests that "Subscriptions are restricted from provisioning in location 'eastus".

We tested with another region, however, it seems the resource group name is tied with the location "eastus" in the bicep template and hence the deployment fails with the below error,

Image

Prod link for the AI-3019 series: https://labondemand.com/LabSeries/33532

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Allfiles/Labs/Shared/deploy.bicep and the documented az deployment group create command. Check how the template and its parameters determine the resource-group or deployment location, then compare that with the subscription's supported regions. Done means the shared deployment succeeds for the AI-3019 labs in a permitted region.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, postgresql
Domain
cloud, databases, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.