Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danycontre committed Aug 2, 2023
1 parent d6ac6e4 commit cbe8224
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions workload/bicep/deploy-baseline.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ var varNetworkObjectsRgName = avdUseCustomNaming ? avdNetworkObjectsRgCustomName
var varComputeObjectsRgName = avdUseCustomNaming ? avdComputeObjectsRgCustomName : 'rg-avd-${varComputeStorageResourcesNamingStandard}-pool-compute' // max length limit 90 characters
var varStorageObjectsRgName = avdUseCustomNaming ? avdStorageObjectsRgCustomName : 'rg-avd-${varComputeStorageResourcesNamingStandard}-storage' // max length limit 90 characters
var varMonitoringRgName = avdUseCustomNaming ? avdMonitoringRgCustomName : 'rg-avd-${varDeploymentEnvironmentLowercase}-${varManagementPlaneLocationAcronym}-monitoring' // max length limit 90 characters
var varTempRgName = 'rg-avd-${varManagementPlaneNamingStandard}-temp'
//var varAvdSharedResourcesRgName = 'rg-${varAvdSessionHostLocationAcronym}-avd-shared-resources'
var varVnetName = avdUseCustomNaming ? avdVnetworkCustomName : 'vnet-${varComputeStorageResourcesNamingStandard}-001'
var varHubVnetName = (createAvdVnet && !empty(existingHubVnetResourceId)) ? split(existingHubVnetResourceId, '/')[8] : ''
Expand Down Expand Up @@ -779,6 +780,14 @@ var verResourceGroups = [
enableDefaultTelemetry: false
tags: createResourceTags ? union(varAllComputeStorageTags, varAvdDefaultTags) : union(varAvdDefaultTags, varAllComputeStorageTags)
}
{
purpose: 'Deployment-Temp'
name: varTempRgName
location: avdSessionHostLocation
enableDefaultTelemetry: false
tags: createResourceTags ? union(varAllComputeStorageTags, varAvdDefaultTags) : union(varAvdDefaultTags, varAllComputeStorageTags)
}

]

// =========== //
Expand Down Expand Up @@ -1233,7 +1242,7 @@ module availabilitySet './modules/avdSessionHosts/.bicep/availabilitySets.bicep'
// Session hosts.
@batchSize(1)
module sessionHosts './modules/avdSessionHosts/deploy.bicep' = [for i in range(1, varSessionHostBatchCount): if (avdDeploySessionHosts) {
name: 'Session-Hosts-Batch-${i-1}-${time}'
name: 'SH-Batch-${i-1}-${time}'
params: {
diskEncryptionSetResourceId: diskZeroTrust ? zeroTrust.outputs.ztDiskEncryptionSetResourceId : ''
avdAgentPackageLocation: varAvdAgentPackageLocation
Expand All @@ -1243,7 +1252,7 @@ module sessionHosts './modules/avdSessionHosts/deploy.bicep' = [for i in range(1
createIntuneEnrollment: createIntuneEnrollment
maxAvsetMembersCount: varMaxAvsetMembersCount
avsetNamePrefix: varAvsetNamePrefix
sessionHostGeneralBatchId: i
sessionHostGeneralBatchId: i-1
computeObjectsRgName: varComputeObjectsRgName
deploySessionHostsCount: avdDeploySessionHostsCount
sessionHostCountIndex: avdSessionHostCountIndex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ module addAvdHostsToHostPool './registerSessionHostsOnHopstPool.bicep' = [for i
// Clean up depployment on compute objects RG
module computeRgDeploymentCleanUp './cleanUpRgDeployments.bicep' = {
scope: resourceGroup('${subscriptionId}', '${computeObjectsRgName}')
name: 'Fsl-Conf-${sessionHostBatchId}-1-${time}'
name: 'Comp-Deplo-Clean-${sessionHostBatchId}-1-${time}'
params: {
location: sessionHostLocation
name: '${sessionHostNamePrefix}${padLeft((1 + sessionHostCountIndex), 4, '0')}'
Expand Down

0 comments on commit cbe8224

Please sign in to comment.