Skip to content

fix: postprovision cleanup step in temp file#116

Merged
Prajwal-Microsoft merged 52 commits intomicrosoft:devfrom
Priyanka-Microsoft:dev
Mar 13, 2026
Merged

fix: postprovision cleanup step in temp file#116
Prajwal-Microsoft merged 52 commits intomicrosoft:devfrom
Priyanka-Microsoft:dev

Conversation

@Priyanka-Microsoft
Copy link
Contributor

@Priyanka-Microsoft Priyanka-Microsoft commented Mar 12, 2026

Purpose

  • ...
    This pull request makes a targeted update to the workflow configuration by removing a specific postprovision cleanup step from the azure.yaml file before running template validation. This ensures that the workflow does not execute the postprovision.ps1 script during validation, which may be unnecessary or cause issues in this context.

Workflow configuration update:

  • Added a step to delete the postprovision cleanup hook that runs ./submodules/ai-landing-zone/bicep/scripts/postprovision.ps1 from the azure.yaml file in the .github/workflows/azd-template-validation.yml workflow.

This step has been removed from azure.yaml because azd down was failing in the pipeline. As a workaround, we are removing this step to ensure the pipeline runs successfully.

Reason for the failure:
After a successful azd up, the post-provision hook cleans up the deploy/ folder. When azd down runs afterward, it attempts to reference the Bicep files in deploy/ (since main.bicep was updated to point to deploy/main.bicep). However, because the folder has already been removed, the command fails with a "path not found" error.
BUG LINK : https://dev.azure.com/CSACTOSOL/CSA%20Solutioning/_workitems/edit/36265/

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

  • ...

Other Information

fix: bicepparams changes to read env variable
@Prajwal-Microsoft Prajwal-Microsoft merged commit d0602a0 into microsoft:dev Mar 13, 2026
2 checks passed
Prajwal-Microsoft pushed a commit that referenced this pull request Mar 13, 2026
* fix: azd template validation pipeline issue (#113)

* pipeline issue updated

* pipeline issue updated

* psr rule file added

* removed psl rule file

* changed the path

* changed the path

* readme changes

* readme changes

* readme changes

* readme changes

* variable fabric capacity

* variable fabric capacity

* setting fabriccapacity admin to my id

* bicepparams changes to read env variable

* bicepparams changes to read env variable

* readme changes

* readme changes

* path changes

* path changes

* removed pull request

* run pipeline on dev merge

* accept array for admin value

* accept array for admin value

* remove run on merge

* updated doc for fabric capacity admin value

* fix: postprovision cleanup step in temp file (#116)

* pipeline issue updated

* pipeline issue updated

* psr rule file added

* removed psl rule file

* changed the path

* changed the path

* readme changes

* readme changes

* readme changes

* readme changes

* variable fabric capacity

* variable fabric capacity

* setting fabriccapacity admin to my id

* bicepparams changes to read env variable

* bicepparams changes to read env variable

* readme changes

* readme changes

* path changes

* path changes

* removed pull request

* run pipeline on dev merge

* accept array for admin value

* accept array for admin value

* remove run on merge

* updated doc for fabric capacity admin value

* rerun the pipeline

* rerun the pipeline

* azd down fix

* added recursive

* added preprovisioning step

* added env variable

* fix: use submodules checkout and disable devcontainer for template validation

* added step to fix bicepparam decorators in template validation workflow

* fix: update bicepparam decorator removal and adjust Bicep module path

* remove postprovision cleanup

* remove changes

* remove changes

* remove postprovision cleanup step

* commented why we are removing it

* commented why we are removing it

---------

Co-authored-by: Harmanpreet-Microsoft <v-harmanprka@microsoft.com>

---------

Co-authored-by: Harmanpreet-Microsoft <v-harmanprka@microsoft.com>
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.

3 participants