hashicorp / hashicorp/packer-plugin-azure

specify location of image when using existing resource group

Open
#224 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
63
Forks
103
PR merge metrics
No merged PRs in 30d

Description

#### Community Note

Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) 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

When using an existing resource group, packer will create the builder VM in the region of the resource group (the [`location` option can only be used when creating a new resource group](https://www.packer.io/plugins/builders/azure/arm#resource-group-usage)). However, this may not the region where the image is actually needed.

It would be useful, if the destination region for the VM could be specified separately from the resource group.

#### Use Case(s)

In corporate environments, a user may not have permissions to create new resource groups.

The current workaround is to
- create a separate vnet in the region of the resource group
- build the image there
- then replicate the image to the destination region

#### Potential configuration

```
```

#### Potential References

Contributor guide

Open the contributing guide

Research direction

The payload names no source files or tests; start at the Azure ARM builder's handling of existing resource groups and the linked resource-group usage documentation. Done means an existing resource group can use a separately specified VM region, without requiring a new resource group, and the behavior is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go
Domain
cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.