Skip to content

Azure: Bicep test #34

Merged
DrisDary merged 8 commits into
mainfrom
bicep-ci-tests
Feb 3, 2026
Merged

Azure: Bicep test #34
DrisDary merged 8 commits into
mainfrom
bicep-ci-tests

Conversation

@DrisDary

@DrisDary DrisDary commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Motivation

What We Did and Why It Was Needed
Extend the existing Azure samples CI workflow to include Bicep deployment tests alongside the existing bash scripts and Terraform tests. The repository had samples using three Infrastructure-as-Code approaches (bash scripts, Terraform, Bicep), but only bash and Terraform tests were running in CI. Without automated Bicep testing, Bicep samples could break without detection.
Needed to validate that LocalStack Azure emulator supports Bicep deployments

Changes

  1. Extended CI Workflow (run-samples.sh & run-samples.yml). Created BICEP_SAMPLES array with 5 bicep test paths. Combined bicep samples with existing bash and terraform samples
  2. Implemented Unique Resource Groups (All 5 bicep deploy.sh scripts). All tests were using the same resource group name (local-rg), causing naming conflicts.

Todo

The bicep test located at web-app-sql-database fails and needs further investigation. For now it has been temporarily skipped but initial findings indicate the need for LocalStack Azure to add fullyQualifiedDomainName property to SQL Server resources. [To see this error just uncomment the line "samples/web-app-sql-database/python/bicep|bash deploy.sh" found in run-samples.sh]

@paolosalvatori paolosalvatori left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Thanks @DrisDary did you solve the issue you mentioned this morning during the standup call? Do all the Bicep installations succeed now? Or did you skip the Web App + SQL DB sample? I fixed the issue mentioned in the description. 🙂

@DrisDary DrisDary merged commit 389ed2b into main Feb 3, 2026
8 checks passed
DrisDary added a commit that referenced this pull request Jun 1, 2026
* added preliminary bicep tests only

* renamed all resourced groups to be unique

* run all tests with corrected web app-sql test for bicep

* run onyl bicep tests

* added logging for failing tests

* revert changes

* run all tests without failing bicep sql test
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