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

[azure-arm] Allow specifying azure availability zone in the packer template #10648

Closed
miketimofeev opened this issue Feb 17, 2021 · 2 comments
Closed

Comments

@miketimofeev
Copy link

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

Recently we've started experiencing issues during VM creation in Azure without specifying availability zone:
azure-arm: resources.DeploymentsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidTemplateDeployment" Message="The template deployment failed with error: 'The resource with id: '/subscriptions/***/resourceGroups/99275_ubuntu1604/providers/Microsoft.Compute/virtualMachines/pkrvmkeubkm2jhf' failed validation with message: 'The requested size for resource '/subscriptions/***/resourceGroups/99275_ubuntu1604/providers/Microsoft.Compute/virtualMachines/pkrvmkeubkm2jhf' is currently not available in location '***' zones '' for subscription '***'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."

The same happens when trying to create VM through the Azure portal with the following settings:
image

However, VM creates just fine using any available zone:
image

In the azure deploying template it looks like this:

            "zones": [
                "[parameters('zone')]"
            ]

Unfortunately, we can't find such parameter in packer templates so our VM generation is blocked and we're trying to solve the issue through Azure support.

Use Case(s)

See above

Potential configuration

"type": "azure-arm",
"location": "westus2",
"az": "1",

Potential References

@ghost
Copy link

ghost commented Apr 30, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-azure#54 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-azure#54.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 31, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants