Skip to content

Commit 2141bfa

Browse files
Merge pull request microsoft#358 from microsoft/main
feat: down merge from main to dev
2 parents 91ea5df + 3b8de8e commit 2141bfa

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

docs/CustomizingAzdParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ By default this template will use the environment name as the prefix to prevent
1818
| `AZURE_ENV_MODEL_CAPACITY` | int | `150` | Sets the GPT model capacity. |
1919
| `AZURE_ENV_IMAGETAG` | string | `latest` | Docker image tag used for container deployments. |
2020
| `AZURE_ENV_ENABLE_TELEMETRY` | bool | `true` | Enables telemetry for monitoring and diagnostics. |
21-
| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | `<Existing Workspace Id>` | Set this if you want to reuse an existing Log Analytics Workspace instead of creating a new one. |
21+
| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | Guide to get your [Existing Workspace ID](/docs/re-use-log-analytics.md) | Set this if you want to reuse an existing Log Analytics Workspace instead of creating a new one. |
2222
---
2323

2424
## How to Set a Parameter

infra/modules/role.bicep

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ resource aiUserAccessFoundry 'Microsoft.Authorization/roleAssignments@2022-04-01
2929
properties: {
3030
roleDefinitionId: aiUser.id
3131
principalId: principalId
32+
principalType: 'ServicePrincipal'
3233
}
3334
}
3435

@@ -38,6 +39,7 @@ resource aiDeveloperAccessFoundry 'Microsoft.Authorization/roleAssignments@2022-
3839
properties: {
3940
roleDefinitionId: aiDeveloper.id
4041
principalId: principalId
42+
principalType: 'ServicePrincipal'
4143
}
4244
}
4345

@@ -47,5 +49,6 @@ resource cognitiveServiceOpenAIUserAccessFoundry 'Microsoft.Authorization/roleAs
4749
properties: {
4850
roleDefinitionId: cognitiveServiceOpenAIUser.id
4951
principalId: principalId
52+
principalType: 'ServicePrincipal'
5053
}
5154
}

infra/old/deploy_ai_foundry.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ resource aiDevelopertoAIProject 'Microsoft.Authorization/roleAssignments@2022-04
169169
properties: {
170170
roleDefinitionId: aiDeveloper.id
171171
principalId: aiHubProject.identity.principalId
172+
principalType: 'ServicePrincipal'
172173
}
173174
}
174175

infra/old/main.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ module aiFoundryStorageAccount 'br/public:avm/res/storage/storage-account:0.18.2
680680
{
681681
principalId: userAssignedIdentity.outputs.principalId
682682
roleDefinitionIdOrName: 'Storage Blob Data Contributor'
683+
principalType: 'ServicePrincipal'
683684
}
684685
]
685686
}
@@ -760,6 +761,7 @@ module aiFoundryAiProject 'br/public:avm/res/machine-learning-services/workspace
760761
principalId: containerApp.outputs.?systemAssignedMIPrincipalId!
761762
// Assigning the role with the role name instead of the role ID freezes the deployment at this point
762763
roleDefinitionIdOrName: '64702f94-c441-49e6-a78b-ef80e0188fee' //'Azure AI Developer'
764+
principalType: 'ServicePrincipal'
763765
}
764766
]
765767
}

infra/scripts/quota_check_params.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,7 @@ for REGION in "${REGIONS[@]}"; do
164164
FOUND=false
165165
INSUFFICIENT_QUOTA=false
166166

167-
if [ "$MODEL_NAME" = "text-embedding-ada-002" ]; then
168-
MODEL_TYPES=("openai.standard.$MODEL_NAME")
169-
else
170-
MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME")
171-
fi
167+
MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME")
172168

173169
for MODEL_TYPE in "${MODEL_TYPES[@]}"; do
174170
FOUND=false

infra/scripts/validate_model_quota.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
param (
22
[string]$Location,
33
[string]$Model,
4-
[string]$DeploymentType = "Standard",
4+
[string]$DeploymentType = "GlobalStandard",
55
[int]$Capacity
66
)
77

infra/scripts/validate_model_quota.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
LOCATION=""
44
MODEL=""
5-
DEPLOYMENT_TYPE="Standard"
5+
DEPLOYMENT_TYPE="GlobalStandard"
66
CAPACITY=0
77

88
ALL_REGIONS=('australiaeast' 'eastus2' 'francecentral' 'japaneast' 'norwayeast' 'swedencentral' 'uksouth' 'westus')

0 commit comments

Comments
 (0)