|
17 | 17 | "path": "subscriptions?api-version=2022-01-01" |
18 | 18 | } |
19 | 19 | }, |
20 | | - { |
21 | | - "name": "avdServicePrincipal", |
22 | | - "type": "Microsoft.Solutions.GraphApiControl", |
23 | | - "condition": "[not(empty(steps('basics').resourceScope.subscription))]", |
24 | | - "request": { |
25 | | - "method": "GET", |
26 | | - "path": "/v1.0/serviceprincipals?$filter=appId eq '9cdead84-a844-4324-93f2-b2e6bb768d07'" |
27 | | - } |
28 | | - }, |
29 | | - { |
30 | | - "name": "avdArmServicePrincipal", |
31 | | - "type": "Microsoft.Solutions.GraphApiControl", |
32 | | - "condition": "[not(empty(steps('basics').resourceScope.subscription))]", |
33 | | - "request": { |
34 | | - "method": "GET", |
35 | | - "path": "/v1.0/servicePrincipals?$filter=appId eq '50e95039-b200-4007-bc97-8d5790743a63'" |
36 | | - } |
37 | | - }, |
38 | 20 | { |
39 | 21 | "name": "infoPreReq", |
40 | 22 | "type": "Microsoft.Common.InfoBox", |
|
649 | 631 | { |
650 | 632 | "name": "servicePrincipalSelector", |
651 | 633 | "type": "Microsoft.Common.Selector", |
652 | | - "visible": "[and(empty(first(steps('basics').avdServicePrincipal.value)), or(steps('managementPlane').managementPlaneHostPoolScaling.startVmOnConnect, steps('managementPlane').managementPlaneHostPoolScaling.scalingPlan))]", |
| 634 | + "visible": "[or(steps('managementPlane').managementPlaneHostPoolScaling.startVmOnConnect, steps('managementPlane').managementPlaneHostPoolScaling.scalingPlan)]", |
653 | 635 | "label": "<b>Azure/Windows Virtual Desktop</b> Enterprise Application", |
654 | 636 | "keyPath": "displayName", |
655 | 637 | "value": "[steps('managementPlane').managementPlaneHostPoolScaling.servicePrincipalPickerBlade.transformed.selection]", |
|
1336 | 1318 | "required": true |
1337 | 1319 | }, |
1338 | 1320 | "link": "[if(empty(steps('storage').storageAppAttach.servicePrincipalPickerBlade), 'Select Enterprise Application', first(map(steps('storage').storageAppAttach.servicePrincipalPickerBlade.transformed.selection, (sp) => sp.displayName)))]", |
1339 | | - "visible": "[and(equals(steps('identity').identityDomainInformation.identityServiceProvider, 'EntraID'), steps('storage').storageAppAttach.appAttachStorageDeployment, empty(first(steps('basics').avdServicePrincipal.value)), empty(steps('managementPlane').managementPlaneHostPoolScaling.servicePrincipalPickerBlade))]" |
| 1321 | + "visible": "[and(equals(steps('identity').identityDomainInformation.identityServiceProvider, 'EntraID'), steps('storage').storageAppAttach.appAttachStorageDeployment, empty(steps('managementPlane').managementPlaneHostPoolScaling.servicePrincipalPickerBlade))]" |
1340 | 1322 | }, |
1341 | 1323 | { |
1342 | 1324 | "name": "armServicePrincipalPickerBlade", |
|
1383 | 1365 | "required": true |
1384 | 1366 | }, |
1385 | 1367 | "link": "[if(empty(steps('storage').storageAppAttach.armServicePrincipalPickerBlade), 'Select Enterprise Application', first(map(steps('storage').storageAppAttach.armServicePrincipalPickerBlade.transformed.selection, (sp) => sp.displayName)))]", |
1386 | | - "visible": "[and(equals(steps('identity').identityDomainInformation.identityServiceProvider, 'EntraID'), steps('storage').storageAppAttach.appAttachStorageDeployment, empty(first(steps('basics').avdArmServicePrincipal.value)))]" |
| 1368 | + "visible": "[and(equals(steps('identity').identityDomainInformation.identityServiceProvider, 'EntraID'), steps('storage').storageAppAttach.appAttachStorageDeployment)]" |
1387 | 1369 | } |
1388 | 1370 | ] |
1389 | 1371 | } |
|
2773 | 2755 | }, |
2774 | 2756 | "outputs": { |
2775 | 2757 | "parameters": { |
2776 | | - "avdServicePrincipalObjectId": "[if(empty(first(steps('basics').avdServicePrincipal.value)), if(or(steps('managementPlane').managementPlaneHostPoolScaling.scalingPlan, steps('managementPlane').managementPlaneHostPoolScaling.startVmOnConnect), first(map(steps('managementPlane').managementPlaneHostPoolScaling.servicePrincipalPickerBlade.transformed.selection, (sp) => sp.id)), if(and(equals(steps('identity').identityDomainInformation.identityServiceProvider, 'EntraID'), steps('storage').storageAppAttach.appAttachStorageDeployment), first(map(steps('storage').storageAppAttach.servicePrincipalPickerBlade.transformed.selection, (sp) => sp.id)), '')), first(steps('basics').avdServicePrincipal.value.id))]", |
2777 | | - "avdArmServicePrincipalObjectId": "[if(and(equals(steps('identity').identityDomainInformation.identityServiceProvider, 'EntraID'), steps('storage').storageAppAttach.appAttachStorageDeployment), if(empty(first(steps('basics').avdArmServicePrincipal.value)), first(map(steps('storage').storageAppAttach.armServicePrincipalPickerBlade.transformed.selection, (sp) => sp.id)), first(steps('basics').avdArmServicePrincipal.value.id)), '')]", |
| 2758 | + "avdServicePrincipalObjectId": "[if(or(steps('managementPlane').managementPlaneHostPoolScaling.scalingPlan, steps('managementPlane').managementPlaneHostPoolScaling.startVmOnConnect), first(map(steps('managementPlane').managementPlaneHostPoolScaling.servicePrincipalPickerBlade.transformed.selection, (sp) => sp.id)), if(and(equals(steps('identity').identityDomainInformation.identityServiceProvider, 'EntraID'), steps('storage').storageAppAttach.appAttachStorageDeployment), first(map(steps('storage').storageAppAttach.servicePrincipalPickerBlade.transformed.selection, (sp) => sp.id)), ''))]", |
| 2759 | + "avdArmServicePrincipalObjectId": "[if(and(equals(steps('identity').identityDomainInformation.identityServiceProvider, 'EntraID'), steps('storage').storageAppAttach.appAttachStorageDeployment), first(map(steps('storage').storageAppAttach.armServicePrincipalPickerBlade.transformed.selection, (sp) => sp.id)), '')]", |
2778 | 2760 | "deploymentPrefix": "[steps('basics').deploymentSpecs.deploymentPrefix]", |
2779 | 2761 | "deploymentEnvironment": "[steps('basics').deploymentSpecs.deploymentEnvironment]", |
2780 | 2762 | "diskZeroTrust": "[steps('sessionHosts').sessionHostsSettingsSection.sessionHostDiskZeroTrust]", |
|
0 commit comments