-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactor of outputs to simplify bicep deployments #123
base: main
Are you sure you want to change the base?
Conversation
…els to match public docs
@@ -327,13 +322,18 @@ resource ccwVirtualNetwork 'Microsoft.Network/virtualNetworks@2023-11-01' = { | |||
} | |||
} | |||
|
|||
var peeringEnabled = contains(network,'vnetToPeer') | |||
var peeredVnetId = network.?vnetToPeer.?id ?? 'q/w/e/r/t/y/u/i/o' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try using an approved fake resource id for these instead.
see https://review.learn.microsoft.com/en-us/help/platform/reference-sensitive-identifier?branch=main
@@ -78,13 +78,15 @@ var subnets = create_new_vnet | |||
additional: { id: join([network.?id, 'subnets', network.?additionalFilerSubnet ?? 'null'], '/') } | |||
} | |||
|
|||
var existingNetworkId = network.?id ?? 'q/w/e/r/t/y/u/i/o' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use an approved resourceId
https://review.learn.microsoft.com/en-us/help/platform/reference-sensitive-identifier?branch=main
@@ -413,9 +413,10 @@ var subnets = union( | |||
create_database ? { database: subnet_database } : {} | |||
) | |||
|
|||
var dbID = databaseConfig.?dbId ?? 'q/w/e/r/t/y/u/i/o' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use an approved resourceId
https://review.learn.microsoft.com/en-us/help/platform/reference-sensitive-identifier?branch=main
Removed redundant fields from the outputs section of the UI definition file to allow for easier bicep deployments for our DevOps and govcloud users. Also cleaned up some things in the UI to align with the reality of outputs (i.e., collecting excess information that would go unused).