Skip to content

Conversation

@jspoelstra
Copy link

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:

  • Added POSIX support to all Azure pipeline hooks in azure.yaml, ensuring that preprovision, postprovision, and postdown hooks run correctly on both Windows and POSIX systems. [1] [2]
  • Updated Docker build commands in deployment/scripts/build-and-deploy-container.ps1 to use forward slashes in file paths and explicitly set the platform to linux/amd64 for better compatibility with macOS/Linux/Windows environments. [1] [2]

Resource selection and provisioning improvements:

  • Enhanced the resource selection logic in deployment/hooks/preprovision.ps1 to first attempt using configured resource name or group, and only prompt the user if necessary. This change improves automation and reduces manual intervention.
  • Improved handling for non-interactive environments in deployment/hooks/preprovision.ps1 by detecting when prompting is not possible, displaying available resources, and providing clear instructions for manual configuration before exiting with an error.
  • Ensured that resource selection and validation logic is robust, reducing the risk of misconfiguration or selection errors during provisioning.

@jspoelstra jspoelstra closed this Jan 9, 2026
@jspoelstra jspoelstra reopened this Jan 9, 2026
@jspoelstra
Copy link
Author

Note: I started with the existing "Mac" PR, but had to make some more changes to get it to work.

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.

1 participant