Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make names of OOD resources more palatable #209

Merged
merged 1 commit into from
Mar 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions bicep/ccw.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ module ccwANF 'anf.bicep' = [

var deployOOD = ood.type != 'disabled'

var oodNicName = 'ccwOpenOnDemandNIC'
module oodNIC 'ood-NIC.bicep' = if (deployOOD) {
name: 'oodNIC'
name: oodNicName
params: {
location: location
name: 'ood-${uniqueString(az.resourceGroup().id)}'
Expand All @@ -264,16 +265,18 @@ module oodNIC 'ood-NIC.bicep' = if (deployOOD) {
}

// create a user assigned managed identity to be assigned to the OOD VM
var oodManagedIdentityName = 'ccwOpenOnDemandManagedIdentity'
resource oodNewManagedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = if (deployOOD) {
name: 'ood-${uniqueString(az.resourceGroup().id)}-mi'
name: oodManagedIdentityName
location: location
}

var oodAppName = 'CycleCloudOpenOnDemandApp-${uniqueString(az.resourceGroup().id)}'
module oodApp 'oodEntraApp.bicep' = if (deployOOD) {
name: 'oodApp'
params: {
umiName: 'ood-${uniqueString(az.resourceGroup().id)}-mi'
appName: 'ood-${uniqueString(az.resourceGroup().id)}-app'
umiName: oodManagedIdentityName
appName: oodAppName
fqdn: oodNIC.outputs.privateIp
}
}
Expand Down
Loading