[BICEP] Add support for custom resource naming in FinOps Toolkit#1635
Conversation
Co-authored-by: flanakin <399533+flanakin@users.noreply.github.com>
Co-authored-by: flanakin <399533+flanakin@users.noreply.github.com>
Co-authored-by: flanakin <399533+flanakin@users.noreply.github.com>
|
Closing stale Copilot draft PR after maintainer review. If any part of this is still needed, we'll bring it back as a fresh, focused PR against current dev. |
|
@microsoft-github-policy-service[bot] Could not find the user |
|
Thanks for picking up #1105. Flagging a correctness concern before this can move forward, based on production experience. In The moment a caller supplies a custom name, the We already have a live example of this exact failure mode: the existing Ask: rework so custom names get a uniqueness token appended (not replaced), or add explicit collision handling/guidance. Also worth coordinating with #2148 and #1876, which propose overlapping/competing designs for the same problem — all tracked together on #1105. |
Overview
This PR adds support for custom resource naming in the FinOps Toolkit Bicep deployment, allowing organizations to follow their naming standards when deploying FinOps resources.
Changes Made
storageAccountName: Custom name for the Storage AccountdataFactoryName: Custom name for the Data FactorykeyVaultName: Custom name for the Key VaultExample Usage
With these changes, consumers can specify their own resource names:
Or use a company naming module:
Backward Compatibility
All parameters have empty string defaults, ensuring backward compatibility with existing deployments. When a parameter is not specified, the resource name is generated using the original logic based on the hub name.
Fixes #1105.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
aka.msbicep build src/templates/finops-hub/main.bicep(dns block)bicep build src/templates/finops-hub/modules/hub-types.bicep(dns block)bicep build src/templates/finops-hub/modules/hub-app.bicep(dns block)app.aladdin.microsoft.com/usr/bin/../../opt/az/bin/python3 -Im azure.cli bicep build --file src/templates/finops-hub/main.bicep --force(dns block)cdn.fwupd.org/usr/bin/fwupdmgr refresh(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.