Skip to content

feat: Enable Resource Group Reuse via Environment and RG Name Parameters#392

Merged
Prajwal-Microsoft merged 2 commits intodevfrom
PSL-US-18607
Jun 9, 2025
Merged

feat: Enable Resource Group Reuse via Environment and RG Name Parameters#392
Prajwal-Microsoft merged 2 commits intodevfrom
PSL-US-18607

Conversation

@Prasanjeet-Microsoft
Copy link
Copy Markdown
Contributor

Purpose

  • This PR introduces the ability to reuse existing Azure Resource Groups when deploying infrastructure using Bicep. The key updates include:

    • Added $environmentName and $resourceGroupName as new parameters.
    • Modified deployment logic to skip creation of the resource group if it already exists.
    • Ensured all resources are deployed within the provided resource group.
    • Validated that no duplicate or conflicting resources are created during test deployment.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid:

  • Validate deployment succeeds when using an existing Resource Group.
  • Confirm no duplicate or conflicting resources are created.
  • Ensure parameters environmentName and resourceGroupName are handled correctly in both script and templates.
  • Please restart the AKS (Kubernetes) service after deployment when deploying resources into an existing (reused) Resource Group to apply changes.

… new parameters: environmentName and resourceGroupName. Updated the Bicep template and PowerShell script to skip resource group creation if it already exists and proceed with resource deployment.
…name prefix generation based on environment and location
@Prajwal-Microsoft Prajwal-Microsoft merged commit 8686300 into dev Jun 9, 2025
5 checks passed
@Prasanjeet-Microsoft Prasanjeet-Microsoft deleted the PSL-US-18607 branch July 3, 2025 19:45
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants