Skip to content

Commit

Permalink
Added replace to remove double spaces
Browse files Browse the repository at this point in the history
jamasten committed Dec 23, 2024
1 parent 798d989 commit 566fe51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bicep/add-ons/azure-virtual-desktop/uiDefinition.json
Original file line number Diff line number Diff line change
@@ -783,7 +783,7 @@
"visible": "[equals(steps('basics').scenario.profile, 'generic')]",
"options": {
"style": "Warning",
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeGeneric)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), '</b>')]"
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeGeneric)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), ' ', ' '), '</b>')]"
}
},
{
@@ -815,7 +815,7 @@
"visible": "[and(equals(steps('basics').scenario.profile, 'arcGisPro'), equals(steps('controlPlane').hostPool.hostPoolType, 'Personal'), equals(steps('controlPlane').hostPool.workloadType, 6))]",
"options": {
"style": "Warning",
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeArcGisProSingleLight)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), '</b>')]"
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeArcGisProSingleLight)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), ' ', ' '), '</b>')]"
}
},
{
@@ -851,7 +851,7 @@
"visible": "[and(equals(steps('basics').scenario.profile, 'arcGisPro'), equals(steps('controlPlane').hostPool.hostPoolType, 'Personal'), equals(steps('controlPlane').hostPool.workloadType, 4))]",
"options": {
"style": "Warning",
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeArcGisProSingleMedium)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), '</b>')]"
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeArcGisProSingleMedium)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), ' ', ' '), '</b>')]"
}
},
{
@@ -885,7 +885,7 @@
"visible": "[and(equals(steps('basics').scenario.profile, 'arcGisPro'), equals(steps('controlPlane').hostPool.hostPoolType, 'Personal'), equals(steps('controlPlane').hostPool.workloadType, 3))]",
"options": {
"style": "Warning",
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeArcGisProSingleHeavy)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), '</b>')]"
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeArcGisProSingleHeavy)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), ' ', ' '), '</b>')]"
}
},
{
@@ -917,7 +917,7 @@
"visible": "[and(equals(steps('basics').scenario.profile, 'arcGisPro'), equals(steps('controlPlane').hostPool.hostPoolType, 'Pooled'))]",
"options": {
"style": "Warning",
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeArcGisProMulti)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), '</b>')]"
"text": "[concat('Please ensure you have sufficient quota to deploy the selected virtual machine size and count for the following virtual machine family: <br><br><b>', replace(replace(replace(first(map(filter(steps('hosts').virtualMachines.resourceSkusApi.value, (item) => contains(item.name, steps('hosts').virtualMachines.sizeArcGisProMulti)), (item) => item.family)), 'standard', 'Standard '), 'Family', ' Family vCPUs'), ' ', ' '), '</b>')]"
}
},
{

0 comments on commit 566fe51

Please sign in to comment.