MicrosoftLearning / MicrosoftLearning/mslearn-postgresql
AI-3019 | All Labs | Issue: Unable to perform deployment using Bicep template | mslearn-postgresql/tree/main/Instructions/Labs
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:
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,
Prod link for the AI-3019 series: https://labondemand.com/LabSeries/33532
Thank you!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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