@@ -337,7 +337,7 @@ To run the application locally, your Azure account needs the following role assi
337337#### Get Your Principal ID
338338
339339``` bash
340- # Get your principal ID
340+ # For Bash
341341PRINCIPAL_ID=$( az ad signed-in-user show --query id -o tsv)
342342echo $PRINCIPAL_ID
343343
@@ -388,12 +388,10 @@ az role assignment create \
388388
389389``` bash
390390# Assign Cosmos DB Built-in Data Contributor role
391- az cosmosdb sql role assignment create \
392- --account-name < cosmos-account-name> \
393- --resource-group < resource-group> \
394- --role-definition-name " Cosmos DB Built-in Data Contributor" \
395- --principal-id $PRINCIPAL_ID \
396- --scope " /"
391+ az role assignment create \
392+ --role " Cosmos DB Built-in Data Contributor" \
393+ --assignee $PRINCIPAL_ID \
394+ --scope " /subscriptions/$SUBSCRIPTION_ID /resourceGroups/<resource-group>/providers/Microsoft.DocumentDB/databaseAccounts/<cosmos-account-name>"
397395```
398396
399397#### Azure Storage Access
@@ -611,7 +609,7 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
611609** Python Version Issues:**
612610``` bash
613611# Verify Python version
614- python --version # Should be Python 3.11.x
612+ python --version # Should be Python 3.11+
615613
616614# If multiple Python versions installed, use specific version
617615python3.11 -m venv .venv
@@ -930,12 +928,12 @@ curl http://127.0.0.1:8000/health
930928#### Python Version Issues
931929
932930``` bash
933- # Check available Python versions
931+ # Check available Python versions (should be Python 3.11+)
934932python --version
935933python3 --version
936934python3.11 --version
937935
938- # If python3.11 not found, install it:
936+ # If python3.11 or newer version not found, install it:
939937# Windows:
940938winget install Python.Python.3.11
941939
@@ -1027,14 +1025,11 @@ az sql db show --name <db-name> --server <server-name> --resource-group <rg-name
10271025# ### SQL Database Connection Errors
10281026
10291027` ` ` bash
1030- # Test SQL connectivity using Python
1031- cd src/api
1032- python test_db_connection.py
1033-
10341028# Common issues:
10351029# 1. Firewall rules - Add your IP in Azure Portal
10361030# 2. ODBC Driver not installed - See Step 1 prerequisites
10371031# 3. Entra ID authentication not configured - See Step 3
1032+ # 4. Check backend API logs for connection errors
10381033` ` `
10391034
10401035** SQL Server Firewall Configuration:**
@@ -1236,7 +1231,14 @@ git commit -m "Resolved merge conflicts"
12361231# Enable profiling in .env
12371232PROFILING_ENABLED=true
12381233
1239- # Monitor Azure service quotas
1234+ # Monitor Azure resource metrics
1235+ # First, get the resource ID of the service you want to monitor
1236+ az resource show --name < resource-name> --resource-group < rg-name> --resource-type < type> --query id -o tsv
1237+
1238+ # List available metrics for a resource
1239+ az monitor metrics list-definitions --resource < resource-id>
1240+
1241+ # View specific metric data
12401242az monitor metrics list \
12411243 --resource < resource-id> \
12421244 --metric-names < metric-name>
0 commit comments