Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/CustomizingAzdParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ By default this template will use the environment name as the prefix to prevent
| `AZURE_ENV_MODEL_CAPACITY` | int | `150` | Sets the GPT model capacity. |
| `AZURE_ENV_IMAGETAG` | string | `latest` | Docker image tag used for container deployments. |
| `AZURE_ENV_ENABLE_TELEMETRY` | bool | `true` | Enables telemetry for monitoring and diagnostics. |
| `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. |
| `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. |
---

## How to Set a Parameter
Expand Down
3 changes: 3 additions & 0 deletions infra/modules/role.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ resource aiUserAccessFoundry 'Microsoft.Authorization/roleAssignments@2022-04-01
properties: {
roleDefinitionId: aiUser.id
principalId: principalId
principalType: 'ServicePrincipal'
}
}

Expand All @@ -38,6 +39,7 @@ resource aiDeveloperAccessFoundry 'Microsoft.Authorization/roleAssignments@2022-
properties: {
roleDefinitionId: aiDeveloper.id
principalId: principalId
principalType: 'ServicePrincipal'
}
}

Expand All @@ -47,5 +49,6 @@ resource cognitiveServiceOpenAIUserAccessFoundry 'Microsoft.Authorization/roleAs
properties: {
roleDefinitionId: cognitiveServiceOpenAIUser.id
principalId: principalId
principalType: 'ServicePrincipal'
}
}
1 change: 1 addition & 0 deletions infra/old/deploy_ai_foundry.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ resource aiDevelopertoAIProject 'Microsoft.Authorization/roleAssignments@2022-04
properties: {
roleDefinitionId: aiDeveloper.id
principalId: aiHubProject.identity.principalId
principalType: 'ServicePrincipal'
}
}

Expand Down
2 changes: 2 additions & 0 deletions infra/old/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ module aiFoundryStorageAccount 'br/public:avm/res/storage/storage-account:0.18.2
{
principalId: userAssignedIdentity.outputs.principalId
roleDefinitionIdOrName: 'Storage Blob Data Contributor'
principalType: 'ServicePrincipal'
}
]
}
Expand Down Expand Up @@ -760,6 +761,7 @@ module aiFoundryAiProject 'br/public:avm/res/machine-learning-services/workspace
principalId: containerApp.outputs.?systemAssignedMIPrincipalId!
// Assigning the role with the role name instead of the role ID freezes the deployment at this point
roleDefinitionIdOrName: '64702f94-c441-49e6-a78b-ef80e0188fee' //'Azure AI Developer'
principalType: 'ServicePrincipal'
}
]
}
Expand Down
6 changes: 1 addition & 5 deletions infra/scripts/quota_check_params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,7 @@ for REGION in "${REGIONS[@]}"; do
FOUND=false
INSUFFICIENT_QUOTA=false

if [ "$MODEL_NAME" = "text-embedding-ada-002" ]; then
MODEL_TYPES=("openai.standard.$MODEL_NAME")
else
MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME")
fi
MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME")

for MODEL_TYPE in "${MODEL_TYPES[@]}"; do
FOUND=false
Expand Down
2 changes: 1 addition & 1 deletion infra/scripts/validate_model_quota.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
param (
[string]$Location,
[string]$Model,
[string]$DeploymentType = "Standard",
[string]$DeploymentType = "GlobalStandard",
[int]$Capacity
)

Expand Down
2 changes: 1 addition & 1 deletion infra/scripts/validate_model_quota.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

LOCATION=""
MODEL=""
DEPLOYMENT_TYPE="Standard"
DEPLOYMENT_TYPE="GlobalStandard"
CAPACITY=0

ALL_REGIONS=('australiaeast' 'eastus2' 'francecentral' 'japaneast' 'norwayeast' 'swedencentral' 'uksouth' 'westus')
Expand Down
Loading
Loading