Skip to content

Commit

Permalink
adding ux for vision
Browse files Browse the repository at this point in the history
  • Loading branch information
krnese committed Feb 6, 2024
1 parent 9ec61b2 commit 4981602
Showing 1 changed file with 177 additions and 2 deletions.
179 changes: 177 additions & 2 deletions fsi/solutions/generativeAi/EnterpriseAIPortal.json
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@
{
"name": "aiUseCaseDeployment",
"type": "Microsoft.Common.OptionsGroup",
"label": "Create Azure AI services for the initial use cases",
"label": "Create required Azure services for the initial use cases",
"defaultValue": "Yes",
"toolTip": "",
"constraints": {
Expand Down Expand Up @@ -1432,7 +1432,7 @@
},
{
"label": "Image and video recognition",
"description": "analyze images and provide textual responses to questions about them. It incorporates both natural language processing and visual understanding.",
"description": "Analyze images and provide textual responses to questions about them. It incorporates both natural language processing and visual understanding.",
"value": "vision"
}
],
Expand Down Expand Up @@ -1624,6 +1624,181 @@
"required": true
},
"visible": "[equals(steps('aiAuxiliarySettings').aiUseCaseDeployment, 'Yes')]"
},
{
"name": "aiVisionSection",
"type": "Microsoft.Common.Section",
"label": "Azure AI Vision",
"elements": [],
"visible": "[and(equals(steps('aiAuxiliarySettings').aiUseCaseDeployment, 'Yes'), equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision'))]"
},
{
"name": "aiVisionInfo",
"type": "Microsoft.Common.TextBlock",
"visible": "[and(equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision'), equals(steps('aiAuxiliarySettings').aiUseCaseDeployment, 'Yes'))]",
"options": {
"icon": "None",
"text": "Azure AI Vision is a unified service that offers innovative computer vision capabilities. Give your apps the ability to analyze images, read text, and detect faces with prebuilt image tagging, text extraction with optical character recognition (OCR), and responsible facial recognition. Incorporate vision features into your projects with no machine learning experience required.",
"uri": "https://www.microsoft.com"
}
},
{
"name": "aiVisionNetworkSection",
"type": "Microsoft.Common.Section",
"label": "Network Settings",
"elements": [],
"visible": "[and(equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision'), equals(steps('aiAuxiliarySettings').aiUseCaseDeployment, 'Yes'))]"
},
{
"name": "aiVisionDisableNetworkAccess",
"type": "Microsoft.Common.OptionsGroup",
"label": "Disable Public Network Access",
"defaultValue": "Yes (recommended)",
"toolTip": "",
"constraints": {
"allowedValues": [
{
"label": "Yes (recommended)",
"value": "Yes"
},
{
"label": "No",
"value": "No"
}
],
"required": true
},
"visible": "[and(equals(steps('aiAuxiliarySettings').aiUseCaseDeployment, 'Yes'), equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision'))]"
},
{
"name": "aiVisionNwLocationOption",
"type": "Microsoft.Common.OptionsGroup",
"label": "Deploy the Private Endpoint for Azure AI Vision into the same region as the Azure AI Vision service",
"defaultValue": "Yes",
"toolTip": "This will deploy the Private Endpoint in the provided subnet and will also associate an Application Security Group",
"constraints": {
"allowedValues": [
{
"label": "Yes",
"value": "Yes"
},
{
"label": "No",
"value": "No"
}
],
"required": true
},
"visible": "[and(equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision'), equals(steps('aiAuxiliarySettings').aiVisionDisableNetworkAccess, 'Yes'))]"
},
{
"name": "aiVisionLocationsApi",
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "locations?api-version=2019-11-01"
}
},
{
"name": "aiVisionNwLocation",
"type": "Microsoft.Common.DropDown",
"label": "Select region for the Private Endpoint",
"filter": true,
"toolTip": "Select the target region for the Private Endpoint",
"constraints": {
"allowedValues": "[map(steps('aiAuxiliarySettings').aiVisionLocationsApi.value,(item) => parse(concat('{\"label\":\"',item.displayName,'\",\"value\":\"',item.name,'\"}')))]",
"required": true
},
"visible": "[and(not(equals(steps('aiAuxiliarySettings').aiVisionNwLocationOption, 'Yes')), equals(steps('aiAuxiliarySettings').aiVisionDisableNetworkAccess, 'Yes'))]"
},
{
"name": "aiVisionSubnetId",
"type": "Microsoft.Common.TextBox",
"label": "ResourceId of existing subnet for connecting Private Endpoint",
"placeholder": "",
"defaultValue": "",
"toolTip": "Use only allowed characters",
"constraints": {
"required": true
},
"visible": "[and(equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision'), equals(steps('aiAuxiliarySettings').aiVisionDisableNetworkAccess, 'Yes'))]"
},
{
"name": "aiVisionauthzSection",
"type": "Microsoft.Common.Section",
"label": "Authorization Settings",
"elements": [],
"visible": "[equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision')]"
},
{
"name": "aiVisionRbacAuthz",
"type": "Microsoft.Common.OptionsGroup",
"label": "Enable Azure RBAC authorization",
"defaultValue": "Yes (recommended)",
"toolTip": "",
"constraints": {
"allowedValues": [
{
"label": "Yes (recommended)",
"value": "Yes"
},
{
"label": "No, use local authorization with API key",
"value": "No"
}
],
"required": true
},
"visible": "[equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision')]"
},
{
"name": "aiVisionSystemIdentity",
"type": "Microsoft.Common.OptionsGroup",
"label": "Enable Managed Identity (System-assigned) for Azure AI Vision",
"defaultValue": "Yes (recommended)",
"toolTip": "When enabling Managed Identity and usage of Customer-Managed keys, this identity will have RBAC permission access the Azure Open AI instance.",
"constraints": {
"allowedValues": [
{
"label": "Yes (recommended)",
"value": "Yes"
},
{
"label": "No",
"value": "No"
}
],
"required": true
},
"visible": "[equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision')]"
},
{
"name": "aiVisionMonSection",
"type": "Microsoft.Common.Section",
"label": "Azure Monitor Settings",
"elements": [],
"visible": "[equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision')]"
},
{
"name": "aiVisionMonCreation",
"type": "Microsoft.Common.OptionsGroup",
"label": "Enable Diagnostic Settings for logging and threat detection",
"defaultValue": "Yes (recommended)",
"toolTip": "",
"constraints": {
"allowedValues": [
{
"label": "Yes (recommended)",
"value": "Yes"
},
{
"label": "No",
"value": "No"
}
],
"required": true
},
"visible": "[equals(steps('aiAuxiliarySettings').aiUseCaseSelection, 'vision')]"
}
]
}
Expand Down

0 comments on commit 4981602

Please sign in to comment.