Skip to content

Commit

Permalink
Fixed friendly name for AVD feed workspace (#904)
Browse files Browse the repository at this point in the history
* Updated outputs for names & description for friendly name

* Updated outputs to work around output limit

* Updated params

* Simplified value passed to deployment

* Compiled bicep changes
  • Loading branch information
jamasten committed Feb 21, 2024
1 parent 5dcb1ca commit 4792380
Show file tree
Hide file tree
Showing 5 changed files with 404 additions and 703 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ param tags object
param timestamp string
param validationEnvironment bool
param vmTemplate string
param workspaceFriendlyName string
param workspaceFeedName string
param workspaceFeedDiagnoticSettingName string
param workspaceFeedName string
param workspaceFeedNetworkInterfaceName string
param workspaceFeedPrivateEndpointName string
param workspaceFriendlyName string
param workspacePublicNetworkAccess string

module hostPool 'hostPool.bicep' = {
Expand Down Expand Up @@ -90,7 +90,6 @@ module workspace 'workspace.bicep' = {
avdPrivateDnsZoneResourceId: avdPrivateDnsZoneResourceId
deploymentUserAssignedIdentityClientId: deploymentUserAssignedIdentityClientId
existing: existingFeedWorkspace
friendlyName: workspaceFriendlyName
hostPoolName: hostPoolName
locationControlPlane: locationControlPlane
locationVirtualMachines: locationVirtualMachines
Expand All @@ -105,6 +104,7 @@ module workspace 'workspace.bicep' = {
workspaceFeedName: workspaceFeedName
workspaceFeedNetworkInterfaceName: workspaceFeedNetworkInterfaceName
workspaceFeedPrivateEndpointName: workspaceFeedPrivateEndpointName
workspaceFriendlyName: workspaceFriendlyName
workspacePublicNetworkAccess: workspacePublicNetworkAccess
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ param artifactsUri string
param avdPrivateDnsZoneResourceId string
param deploymentUserAssignedIdentityClientId string
param existing bool
param friendlyName string
param hostPoolName string
param locationControlPlane string
param locationVirtualMachines string
Expand All @@ -18,6 +17,7 @@ param workspaceFeedDiagnoticSettingName string
param workspaceFeedName string
param workspaceFeedNetworkInterfaceName string
param workspaceFeedPrivateEndpointName string
param workspaceFriendlyName string
param workspacePublicNetworkAccess string

module addApplicationGroups '../common/customScriptExtensions.bicep' = if (existing) {
Expand All @@ -44,7 +44,7 @@ resource workspace 'Microsoft.DesktopVirtualization/workspaces@2023-09-05' = if
tags: {}
properties: {
applicationGroupReferences: applicationGroupReferences
friendlyName: empty(friendlyName) ? hostPoolName : '${friendlyName} (${locationControlPlane})'
friendlyName: workspaceFriendlyName
publicNetworkAccess: workspacePublicNetworkAccess
}
}
Expand Down
Loading

0 comments on commit 4792380

Please sign in to comment.