Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
avm/ptn/ai-platform/baseline
Enforce location when deploying V…
…M with zones (Azure#3045) ## Description <!-- >Thank you for your contribution ! > Please include a summary of the change and which issue is fixed. > Please also include the context. > List any dependencies that are required for this change. Fixes Azure#123 Fixes Azure#456 Closes Azure#123 Closes Azure#456 --> This fixes the CI build, by deploying the VM with an availability zone into uksouth, as there are no zone restrictions in this location. ![image](https://github.com/user-attachments/assets/414f8ee4-26a1-49f8-88fb-f26bfa849a4a) Error from pipeline. ``` VERBOSE: 08:53:09 - The deployment 'a-p-ap-b-waf-aligned-t1-20240814T0808098316Z' failed with error(s). Showing 2 out of 2 error(s). Status Message: The template deployment 'idx4jtu3qkiqg-virtual-machine' is not valid according to the validation procedure. The tracking id is '3498bd14-2fe0-49c5-84d8-d8c5037ee9be'. See inner errors for details. (Code: InvalidTemplateDeployment) - The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_D2s_v3' is currently not available in location 'westeurope'. Please try another size or deploy to a different location or different zone. See https://aka.ms/azureskunotavailable for details. (Code:SkuNotAvailable) Status Message: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details. (Code: DeploymentFailed) - The template deployment 'idx4jtu3qkiqg-virtual-machine' is not valid according to the validation procedure. The tracking id is '3498bd14-2fe0-49c5-84d8-d8c5037ee9be'. See inner errors for details. (Code: InvalidTemplateDeployment) - The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_D2s_v3' is currently not available in location 'westeurope'. Please try another size or deploy to a different location or different zone. See https://aka.ms/azureskunotavailable for details. (Code:SkuNotAvailable) CorrelationId: 1c745da8-57c2-47a6-936a-e7b5e22f698d ``` Also disabling availability zones for `max` example, so this does not fail either. ## Pipeline Reference <!-- Insert your Pipeline Status Badge below --> | Pipeline | | -------- | | [![avm.ptn.ai-platform.baseline](https://github.com/cecheta/bicep-registry-modules/actions/workflows/avm.ptn.ai-platform.baseline.yml/badge.svg?branch=vm-zone)](https://github.com/cecheta/bicep-registry-modules/actions/workflows/avm.ptn.ai-platform.baseline.yml) | Note: I can only run this in my subscription if I hardcode the location in the pipeline to `uksouth`, as I cannot deploy any VMs into westeurope, which I why this was not caught earlier. ## Type of Change <!-- Use the checkboxes [x] on the options that are relevant. --> - [ ] Update to CI Environment or utilities (Non-module affecting changes) - [x] Azure Verified Module updates: - [x] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description. - [x] The bug was found by the module author, and no one has opened an issue to report it yet. - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation ## Checklist - [x] I'm sure there are no other open Pull Requests for the same update/change - [x] I have run `Set-AVMModule` locally to generate the supporting module files. - [ ] My corresponding pipelines / checks run clean and green without any errors or warnings <!-- Please keep up to date with the contribution guide at https://aka.ms/avm/contribute/bicep -->
- Loading branch information