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 #54

Open
ghost opened this issue Apr 30, 2021 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Apr 30, 2021

This issue was originally opened by @miketimofeev as hashicorp/packer#10648. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants