fix: Add posix in pre-deployment hook in azure.yaml#659
Closed
chaudhariniraj wants to merge 3 commits into
Closed
Conversation
chaudhariniraj
requested review from
Avijit-Microsoft,
Roopan-Microsoft,
aniaroramsft,
dgp10801,
nchandhi and
toherman-msft
as code owners
July 17, 2026 08:02
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a POSIX (sh) variant of the existing preprovision hook messaging in azure.yaml so non-Windows environments see the same deployment guidance during azd execution.
Changes:
- Added a
hooks.preprovision.posixhook that prints deployment troubleshooting guidance. - Configured the POSIX hook to run via
shand be interactive, mirroring the existing Windows hook behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
| interactive: true | ||
| posix: | ||
| run: | | ||
| printf '\n\033[33m ---------------------------------------------------------------------------------------------------\033[0m\n\033[33m Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs.\033[0m\n\033[36m https://github.com/microsoft/content-processing-solution-accelerator/issues\033[0m\n\033[33m ---------------------------------------------------------------------------------------------------\033[0m\n\n' |
|
|
||
| metadata: | ||
| template: content-processing@1.0 | ||
| name: content-processinge@1.0 |
| Write-Host "" | ||
| shell: pwsh | ||
| interactive: true | ||
| # # yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Add posix in pre-deployment hook in azure.yaml
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information