Skip to content

Commit e5e6878

Browse files
Resolved the comments
1 parent 93c1fce commit e5e6878

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

infra/bicep/modules/ai/ai-foundry-project.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ output projectResourceId string = aiProject.id
105105
@description('Name of the Azure AI Foundry project.')
106106
output projectName string = aiProject.name
107107

108-
@description('Azure AI Foundry project endpoint.')
109-
output projectEndpoint string = aiProject.properties.endpoints['Azure AI Foundry API']
108+
@description('AI Foundry project endpoint.')
109+
output projectEndpoint string = aiProject.properties.endpoints['AI Foundry API']
110110

111111
@description('System-assigned identity principal ID of the project.')
112112
output projectIdentityPrincipalId string = aiProject.identity.principalId

infra/bicep/modules/ai/existing-project-setup.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ output projectResourceId string = aiProject.id
5353
@description('Name of the Azure AI Foundry project.')
5454
output projectName string = aiProject.name
5555

56-
@description('Azure AI Foundry project endpoint.')
57-
output projectEndpoint string = aiProject.properties.endpoints['Azure AI Foundry API']
56+
@description('AI Foundry project endpoint.')
57+
output projectEndpoint string = aiProject.properties.endpoints['AI Foundry API']
5858

5959
@description('System-assigned identity principal ID of the project (empty if none).')
6060
output projectIdentityPrincipalId string = contains(aiProject, 'identity') && contains(aiProject.identity, 'principalId') ? aiProject.identity.principalId : ''

infra/scripts/post-provision/data_scripts/03_write_products_to_cosmos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def upsert_with_retry(container, item: Dict[str, Any], max_retries: int = 6):
106106
continue
107107
if status in (401, 403):
108108
raise SystemExit(
109-
"Unauthorized. Ensure your identity has 'Azure Cosmos DB Built-in Data Contributor' role."
109+
"Unauthorized. Ensure your identity has 'Cosmos DB Built-in Data Contributor' role."
110110
) from e
111111
raise
112112
raise RuntimeError(f"Failed to upsert item after {max_retries} retries")

infra/scripts/pre-provision/checkquota.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ declare -A MIN_CAPACITY=(
5858

5959
echo "----------------------------------------"
6060
echo "📋 Required quota minimums for this deployment:"
61-
echo " - Azure OpenAI.GlobalStandard.gpt-5.4-mini: ${GPT_MIN_CAPACITY}"
62-
echo " - Azure OpenAI.GlobalStandard.text-embedding-3-small: ${EMBEDDING_MIN_CAPACITY}"
63-
echo " - Azure OpenAI.GlobalStandard.gpt-realtime-mini: ${GPT_REALTIME_MIN_CAPACITY}"
61+
echo " - OpenAI.GlobalStandard.gpt-5.4-mini: ${GPT_MIN_CAPACITY}"
62+
echo " - OpenAI.GlobalStandard.text-embedding-3-small: ${EMBEDDING_MIN_CAPACITY}"
63+
echo " - OpenAI.GlobalStandard.gpt-realtime-mini: ${GPT_REALTIME_MIN_CAPACITY}"
6464

6565
# Iterate through ALL regions and select the one with the highest available GPT quota.
6666
VALID_REGION=""

scenario-app/backend/app/cosmos_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(self):
116116
--resource-group [YOUR_RESOURCE_GROUP] \\
117117
--scope "/" \\
118118
--principal-id 137b5924-bb10-4c28-9a9b-06e8227fb28e \\
119-
--role-definition-name "Azure Cosmos DB Built-in Data Contributor"
119+
--role-definition-name "Cosmos DB Built-in Data Contributor"
120120
121121
2. Or assign custom role with required permissions:
122122
az role assignment create \\
@@ -136,7 +136,7 @@ def __init__(self):
136136
137137
Solutions:
138138
1. Grant RBAC permissions (see commands above)
139-
2. Ask your Microsoft Entra ID admin to assign "Azure Cosmos DB Built-in Data Contributor" role
139+
2. Ask your Microsoft Entra ID admin to assign "Cosmos DB Built-in Data Contributor" role
140140
3. Or temporarily enable local auth: az cosmosdb update --name ecommerce-prod-cosmos-202510211322 --resource-group [RESOURCE_GROUP] --disable-key-based-metadata-write-access false
141141
142142
Original error: {error_msg}

0 commit comments

Comments
 (0)