Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AVM Module Issue]: virtualmachine error when deploying vm with ZRS datadisk #3850

Open
1 task done
gerjon1990 opened this issue Nov 28, 2024 · 3 comments · May be fixed by #3864
Open
1 task done

[AVM Module Issue]: virtualmachine error when deploying vm with ZRS datadisk #3850

gerjon1990 opened this issue Nov 28, 2024 · 3 comments · May be fixed by #3864
Assignees
Labels
Class: Resource Module 📦 This is a resource module Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Bug 🐛 Something isn't working

Comments

@gerjon1990
Copy link

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Bug

Module Name

avm/res/compute/virtual-machine

(Optional) Module Version

0.10.0

Description

Hi,

Since module version 0.10.0 of virtualmachine we can't deploy a vm with one or more datadisks that will be joined to a availability zone.
The error we get is:

Status Message: A disk with sku 'Premium_ZRS' cannot be created in an availability zone. (Code:OperationNotAllowed)

We did a rollback to version 0.9.0 and deployments run successfull again.

(Optional) Correlation Id

No response

@gerjon1990 gerjon1990 added Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue labels Nov 28, 2024

Important

The "Needs: Triage 🔍" label must be removed once the triage process is complete!

Tip

For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Type: Bug 🐛 Something isn't working label Nov 28, 2024
@avm-team-linter avm-team-linter bot added the Class: Resource Module 📦 This is a resource module label Nov 28, 2024
@github-project-automation github-project-automation bot moved this to Needs: Triage in AVM - Module Issues Nov 28, 2024
Copy link

@gerjon1990, thanks for submitting this issue for the avm/res/compute/virtual-machine module!

Important

A member of the @Azure/avm-res-compute-virtualmachine-module-owners-bicep or @Azure/avm-res-compute-virtualmachine-module-contributors-bicep team will review it soon!

@gerjon1990
Copy link
Author

gerjon1990 commented Nov 28, 2024

maybe a solution:

When storagetype (sku) is ZRS than set datadisk zone to 0. In the current version the datadisk zone follows the zone of the vm deployment. This is not possible when vm will be joined to a availability zone and the datadisk has sku ZRS.

3891sinneD added a commit to 3891sinneD/bicep-registry-modules that referenced this issue Nov 29, 2024
Possible fix for issue: Azure#3850
@3891sinneD 3891sinneD linked a pull request Nov 29, 2024 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: Resource Module 📦 This is a resource module Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Bug 🐛 Something isn't working
Projects
Status: Needs: Triage
Development

Successfully merging a pull request may close this issue.

2 participants