|
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | 7 | "version": "0.28.1.47646", |
8 | | - "templateHash": "11957189839242396362" |
| 8 | + "templateHash": "8683268250512923004" |
9 | 9 | }, |
10 | 10 | "name": "AVD Accelerator - Baseline Deployment", |
11 | 11 | "description": "AVD Accelerator - Deployment Baseline" |
|
12049 | 12049 | "identityServiceProvider": { |
12050 | 12050 | "value": "[parameters('avdIdentityServiceProvider')]" |
12051 | 12051 | }, |
12052 | | - "securityPrincipalIds": "[if(not(empty(parameters('securityPrincipalId'))), createObject('value', array(parameters('securityPrincipalId'))), createObject('value', createArray()))]", |
| 12052 | + "securityPrincipalId": "[if(not(empty(parameters('securityPrincipalId'))), createObject('value', parameters('securityPrincipalId')), createObject('value', ''))]", |
12053 | 12053 | "tags": "[if(parameters('createResourceTags'), createObject('value', union(variables('varCustomResourceTags'), variables('varAvdDefaultTags'))), createObject('value', variables('varAvdDefaultTags')))]", |
12054 | 12054 | "alaWorkspaceResourceId": "[if(parameters('avdDeployMonitoring'), if(parameters('deployAlaWorkspace'), createObject('value', reference(subscriptionResourceId('Microsoft.Resources/deployments', format('Monitoring-{0}', parameters('time'))), '2022-09-01').outputs.avdAlaWorkspaceResourceId.value), createObject('value', parameters('alaExistingWorkspaceResourceId'))), createObject('value', ''))]", |
12055 | 12055 | "hostPoolAgentUpdateSchedule": { |
|
12063 | 12063 | "_generator": { |
12064 | 12064 | "name": "bicep", |
12065 | 12065 | "version": "0.28.1.47646", |
12066 | | - "templateHash": "16698304225040315361" |
| 12066 | + "templateHash": "2142854373500007534" |
12067 | 12067 | } |
12068 | 12068 | }, |
12069 | 12069 | "parameters": { |
|
12091 | 12091 | "description": "The service providing domain services for Azure Virtual Desktop." |
12092 | 12092 | } |
12093 | 12093 | }, |
12094 | | - "securityPrincipalIds": { |
12095 | | - "type": "array", |
| 12094 | + "securityPrincipalId": { |
| 12095 | + "type": "string", |
12096 | 12096 | "metadata": { |
12097 | 12097 | "description": "Identity ID to grant RBAC role to access AVD application group." |
12098 | 12098 | } |
|
12256 | 12256 | } |
12257 | 12257 | }, |
12258 | 12258 | "variables": { |
12259 | | - "copy": [ |
12260 | | - { |
12261 | | - "name": "varRoleAssignments", |
12262 | | - "count": "[length(parameters('securityPrincipalIds'))]", |
12263 | | - "input": "[createArray(createObject('roleDefinitionIdOrName', 'Desktop Virtualization User', 'principalId', parameters('securityPrincipalIds')[copyIndex('varRoleAssignments')]))]" |
12264 | | - } |
12265 | | - ], |
12266 | 12259 | "varApplicaitonGroups": [ |
12267 | 12260 | { |
12268 | 12261 | "name": "[parameters('applicationGroupName')]", |
|
13829 | 13822 | "value": "[parameters('tags')]" |
13830 | 13823 | }, |
13831 | 13824 | "applications": "[if(equals(variables('varApplicaitonGroups')[copyIndex()].applicationGroupType, 'RemoteApp'), createObject('value', variables('varRAppApplicationGroupsApps')), createObject('value', createArray()))]", |
| 13825 | + "roleAssignments": { |
| 13826 | + "value": [ |
| 13827 | + { |
| 13828 | + "roleDefinitionIdOrName": "Desktop Virtualization User", |
| 13829 | + "principalId": "[parameters('securityPrincipalId')]" |
| 13830 | + } |
| 13831 | + ] |
| 13832 | + }, |
13832 | 13833 | "diagnosticSettings": { |
13833 | 13834 | "value": "[variables('varDiagnosticSetting')]" |
13834 | 13835 | } |
|
16334 | 16335 | "createStorageDeployment": { |
16335 | 16336 | "value": "[variables('varCreateStorageDeployment')]" |
16336 | 16337 | }, |
16337 | | - "securityPrincipalIds": "[if(not(empty(parameters('securityPrincipalId'))), createObject('value', array(parameters('securityPrincipalId'))), createObject('value', createArray()))]", |
| 16338 | + "securityPrincipalId": "[if(not(empty(parameters('securityPrincipalId'))), createObject('value', parameters('securityPrincipalId')), createObject('value', ''))]", |
16338 | 16339 | "tags": "[if(parameters('createResourceTags'), createObject('value', union(variables('varCustomResourceTags'), variables('varAvdDefaultTags'))), createObject('value', variables('varAvdDefaultTags')))]" |
16339 | 16340 | }, |
16340 | 16341 | "template": { |
|
16344 | 16345 | "_generator": { |
16345 | 16346 | "name": "bicep", |
16346 | 16347 | "version": "0.28.1.47646", |
16347 | | - "templateHash": "3451688091470705442" |
| 16348 | + "templateHash": "8942259551916348729" |
16348 | 16349 | } |
16349 | 16350 | }, |
16350 | 16351 | "parameters": { |
|
16396 | 16397 | "description": "Required, The service providing domain services for Azure Virtual Desktop." |
16397 | 16398 | } |
16398 | 16399 | }, |
16399 | | - "securityPrincipalIds": { |
16400 | | - "type": "array", |
| 16400 | + "securityPrincipalId": { |
| 16401 | + "type": "string", |
16401 | 16402 | "metadata": { |
16402 | 16403 | "description": "Required, Identity ID to grant RBAC role to access AVD application group." |
16403 | 16404 | } |
@@ -18533,14 +18534,10 @@ |
18533 | 18534 | ] |
18534 | 18535 | }, |
18535 | 18536 | { |
18536 | | - "copy": { |
18537 | | - "name": "storageSmbShareContributorRoleAssign", |
18538 | | - "count": "[length(parameters('securityPrincipalIds'))]" |
18539 | | - }, |
18540 | | - "condition": "[and(parameters('createStorageDeployment'), not(empty(parameters('securityPrincipalIds'))))]", |
| 18537 | + "condition": "[and(parameters('createStorageDeployment'), not(empty(parameters('securityPrincipalId'))))]", |
18541 | 18538 | "type": "Microsoft.Resources/deployments", |
18542 | 18539 | "apiVersion": "2022-09-01", |
18543 | | - "name": "[format('Stora-SmbContri-RolAssign{0}-{1}', take(format('{0}', parameters('securityPrincipalIds')[copyIndex()]), 6), parameters('time'))]", |
| 18540 | + "name": "[format('Stora-SmbContri-RolAssign{0}-{1}', take(format('{0}', parameters('securityPrincipalId')), 6), parameters('time'))]", |
18544 | 18541 | "subscriptionId": "[format('{0}', parameters('subscriptionId'))]", |
18545 | 18542 | "resourceGroup": "[format('{0}', parameters('storageObjectsRgName'))]", |
18546 | 18543 | "properties": { |
|
18553 | 18550 | "value": "[format('/subscriptions/{0}/providers/Microsoft.Authorization/roleDefinitions/{1}', parameters('subscriptionId'), variables('varStorageSmbShareContributorRole').id)]" |
18554 | 18551 | }, |
18555 | 18552 | "principalId": { |
18556 | | - "value": "[parameters('securityPrincipalIds')[copyIndex()]]" |
| 18553 | + "value": "[parameters('securityPrincipalId')]" |
18557 | 18554 | } |
18558 | 18555 | }, |
18559 | 18556 | "template": { |
@@ -19113,14 +19110,10 @@ |
19113 | 19110 | } |
19114 | 19111 | }, |
19115 | 19112 | { |
19116 | | - "copy": { |
19117 | | - "name": "aadIdentityLoginRoleAssign", |
19118 | | - "count": "[length(parameters('securityPrincipalIds'))]" |
19119 | | - }, |
19120 | | - "condition": "[and(equals(parameters('identityServiceProvider'), 'EntraID'), not(empty(parameters('securityPrincipalIds'))))]", |
| 19113 | + "condition": "[and(equals(parameters('identityServiceProvider'), 'EntraID'), not(empty(parameters('securityPrincipalId'))))]", |
19121 | 19114 | "type": "Microsoft.Resources/deployments", |
19122 | 19115 | "apiVersion": "2022-09-01", |
19123 | | - "name": "[format('VM-Login-Comp-{0}-{1}', take(format('{0}', parameters('securityPrincipalIds')[copyIndex()]), 6), parameters('time'))]", |
| 19116 | + "name": "[format('VM-Login-Comp-{0}-{1}', take(format('{0}', parameters('securityPrincipalId')), 6), parameters('time'))]", |
19124 | 19117 | "subscriptionId": "[format('{0}', parameters('subscriptionId'))]", |
19125 | 19118 | "resourceGroup": "[format('{0}', parameters('computeObjectsRgName'))]", |
19126 | 19119 | "properties": { |
|
19133 | 19126 | "value": "[format('/subscriptions/{0}/providers/Microsoft.Authorization/roleDefinitions/{1}', parameters('subscriptionId'), variables('varVirtualMachineUserLoginRole').id)]" |
19134 | 19127 | }, |
19135 | 19128 | "principalId": { |
19136 | | - "value": "[parameters('securityPrincipalIds')[copyIndex()]]" |
| 19129 | + "value": "[parameters('securityPrincipalId')]" |
19137 | 19130 | } |
19138 | 19131 | }, |
19139 | 19132 | "template": { |
@@ -19693,14 +19686,10 @@ |
19693 | 19686 | } |
19694 | 19687 | }, |
19695 | 19688 | { |
19696 | | - "copy": { |
19697 | | - "name": "aadIdentityLoginAccessServiceObjects", |
19698 | | - "count": "[length(parameters('securityPrincipalIds'))]" |
19699 | | - }, |
19700 | | - "condition": "[and(equals(parameters('identityServiceProvider'), 'EntraID'), not(empty(parameters('securityPrincipalIds'))))]", |
| 19689 | + "condition": "[and(equals(parameters('identityServiceProvider'), 'EntraID'), not(empty(parameters('securityPrincipalId'))))]", |
19701 | 19690 | "type": "Microsoft.Resources/deployments", |
19702 | 19691 | "apiVersion": "2022-09-01", |
19703 | | - "name": "[format('VM-Login-Serv-{0}-{1}', take(format('{0}', parameters('securityPrincipalIds')[copyIndex()]), 6), parameters('time'))]", |
| 19692 | + "name": "[format('VM-Login-Serv-{0}-{1}', take(format('{0}', parameters('securityPrincipalId')), 6), parameters('time'))]", |
19704 | 19693 | "subscriptionId": "[format('{0}', parameters('subscriptionId'))]", |
19705 | 19694 | "resourceGroup": "[format('{0}', parameters('serviceObjectsRgName'))]", |
19706 | 19695 | "properties": { |
|
19713 | 19702 | "value": "[format('/subscriptions/{0}/providers/Microsoft.Authorization/roleDefinitions/{1}', parameters('subscriptionId'), variables('varVirtualMachineUserLoginRole').id)]" |
19714 | 19703 | }, |
19715 | 19704 | "principalId": { |
19716 | | - "value": "[parameters('securityPrincipalIds')[copyIndex()]]" |
| 19705 | + "value": "[parameters('securityPrincipalId')]" |
19717 | 19706 | } |
19718 | 19707 | }, |
19719 | 19708 | "template": { |
|
0 commit comments