fix: Added a fallback to post-deployment scripts to derive resource values from solution-suffix naming when deployment outputs are missing #711
+307
−39
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
This pull request introduces a robust fallback mechanism to the deployment and sample data processing scripts, allowing resource values to be retrieved using the
solutionSuffixfrom resource group tags when deployment outputs are unavailable. It also ensures that thesolutionSuffixis consistently tagged in resources, and improves the reliability of resource dependency ordering in the ARM template. These changes make the deployment process more resilient to missing or deleted deployments and maintain consistency in resource naming and metadata.Script enhancements for resiliency and automation:
get_values_from_solution_suffixto bothprocess_custom_data.shandprocess_sample_data.sh, enabling resource name and property generation using thesolutionSuffixtag and Azure naming conventions when deployment outputs are missing. This includes logic to fetch managed identity client IDs, endpoints, and resource IDs, and prompts for manual use case entry if not found in tags. [1] [2]Infrastructure and template consistency:
SolutionSuffixproperty to resource group tags in both the Bicep (main.bicep) and generated ARM template (main.json), ensuring the tag is always available for fallback logic and resource identification. [1] [2]Other technical updates:
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information