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.
This pull request introduces improvements for cross-platform compatibility and enhanced configuration handling in deployment scripts and Azure pipeline hooks. The main changes ensure that scripts and hooks work seamlessly on both Windows and POSIX systems, and that resource selection in provisioning is more robust and user-friendly, especially in non-interactive environments.
Cross-platform compatibility:
azure.yaml, ensuring that preprovision, postprovision, and postdown hooks run correctly on both Windows and POSIX systems. [1] [2]deployment/scripts/build-and-deploy-container.ps1to use forward slashes in file paths and explicitly set the platform tolinux/amd64for better compatibility with macOS/Linux/Windows environments. [1] [2]Resource selection and provisioning improvements:
deployment/hooks/preprovision.ps1to first attempt using configured resource name or group, and only prompt the user if necessary. This change improves automation and reduces manual intervention.deployment/hooks/preprovision.ps1by detecting when prompting is not possible, displaying available resources, and providing clear instructions for manual configuration before exiting with an error.