-
Notifications
You must be signed in to change notification settings - Fork 201
[BICEP] Add support for custom resource naming in FinOps Toolkit #1635
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
base: dev
Are you sure you want to change the base?
Changes from 4 commits
de87ccc
8c59701
7e5ee2c
2a912e8
66f9c8f
3cb5af8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,6 +147,15 @@ param enablePublicAccess bool = true | |
| @description('Optional. Address space for the workload. A /26 is required for the workload. Default: "10.20.30.0/26".') | ||
| param virtualNetworkAddressPrefix string = '10.20.30.0/26' | ||
|
|
||
| @description('Optional. Custom name for the Storage Account. If not provided, a name will be generated based on the hub name. Must follow Azure Storage naming rules.') | ||
| param storageAccountName string = '' | ||
|
|
||
| @description('Optional. Custom name for the Data Factory. If not provided, a name will be generated based on the hub name. Must follow Azure Data Factory naming rules.') | ||
| param dataFactoryName string = '' | ||
|
|
||
| @description('Optional. Custom name for the Key Vault. If not provided, a name will be generated based on the hub name. Must follow Azure Key Vault naming rules.') | ||
| param keyVaultName string = '' | ||
|
|
||
|
|
||
| //============================================================================== | ||
| // Resources | ||
|
|
@@ -176,6 +185,9 @@ module hub 'modules/hub.bicep' = { | |
| remoteHubStorageKey: remoteHubStorageKey | ||
| enablePublicAccess: enablePublicAccess | ||
| virtualNetworkAddressPrefix: virtualNetworkAddressPrefix | ||
| storageAccountName: storageAccountName | ||
| dataFactoryName: dataFactoryName | ||
| keyVaultName: keyVaultName | ||
|
||
| } | ||
| } | ||
|
|
||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot You reverted too much. The storage, ADF, and Key Vault names should be specified in hub.bicep and passed down to hub-app.bicep.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've restored the storage, ADF, and Key Vault name parameters in hub.bicep and hub-app.bicep while ensuring they're properly passed through the module chain. The parameters are now available in hub.bicep and passed down to hub-app.bicep as requested (commit 3cb5af8). |
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.
Revert
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.
Reverted the custom resource naming parameters in main.bicep (commit 66f9c8f)