Skip to content

Commit

Permalink
fix template azure marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
dayesouza committed Dec 17, 2024
1 parent 7150c06 commit be2cb91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions deploy/azure/createUiDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@
"allowedValues": [
{
"label": "OpenAI",
"value": "openai"
"value": "OpenAI"
},
{
"label": "Azure OpenAI",
"value": "azure"
"value": "Azure OpenAI"
}
],
"required": true
Expand All @@ -86,7 +86,7 @@
"type": "Microsoft.Common.CheckBox",
"label": "Use Managed Identity",
"toolTip": "Use Managed Identity to authenticate to Azure AI",
"visible": "[equals(steps('AISettings').aiType, 'azure')]"
"visible": "[equals(steps('AISettings').aiType, 'Azure OpenAI')]"
},
{
"name": "aiEndpoint",
Expand All @@ -95,11 +95,11 @@
"toolTip": "The endpoint of the Azure AI service",
"defaultValue": "",
"constraints": {
"required": "[equals(steps('AISettings').aiType, 'azure')]",
"required": "[equals(steps('AISettings').aiType, 'Azure OpenAI')]",
"regex": "^(https://)([a-zA-Z0-9-]+)(.openai.azure.com)$",
"validationMessage": "Must be a valid Azure AI endpoint"
},
"visible": "[equals(steps('AISettings').aiType, 'azure')]"
"visible": "[equals(steps('AISettings').aiType, 'Azure OpenAI')]"
},
{
"name": "openaiApiKey",
Expand All @@ -112,7 +112,7 @@
"validationMessage": "Must be a valid OpenAI key"
},
"defaultValue": "",
"visible": "[or(equals(steps('AISettings').aiManagedIdentity, false), equals(steps('AISettings').aiType, 'openai'))]"
"visible": "[or(equals(steps('AISettings').aiManagedIdentity, false), equals(steps('AISettings').aiType, 'OpenAI'))]"
}
]
},
Expand Down
3 changes: 2 additions & 1 deletion deploy/azure/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
},
{
"name": "AZURE_AUTH_TYPE",
"value": "[if(equals(parameters('aiManagedIdentity'), 'true'), 'Managed Identity', 'Azure Key')]"
"value": "[if(parameters('aiManagedIdentity'), 'Managed Identity', 'Azure Key')]"
},
{
"name": "AZURE_OPENAI_ENDPOINT",
Expand Down Expand Up @@ -162,6 +162,7 @@
{
"type": "Microsoft.Web/sites/config",
"apiVersion": "2022-09-01",
"condition": "[equals(parameters('disableAuth'), 'false')]",
"name": "[concat(parameters('webAppName'), '/authsettingsV2')]",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', parameters('webAppName'))]"
Expand Down

0 comments on commit be2cb91

Please sign in to comment.