Skip to content

Use existing resource group #10557

Discussion options

You must be logged in to vote

Yes @code-on-git ,you can specify your own resource group when building images with Packer. By default, Packer creates a temporary resource group, but you can set the resource_group_name parameter in your Azure builder configuration to use your own resource group.
Points:

  • Ensure that the specified resource group already exists in your Azure account.
  • Double-check your Azure permissions, as service principal needs to have the correct rights to create and manage resources in the specified resource group.
    Here is an example:
  builder "azure-arm" {
  client_id       = "YOUR_CLIENT_ID"
  client_secret   = "YOUR_CLIENT_SECRET"
  tenant_id       = "YOUR_TENANT_ID"
  subscription_id  = "YOUR_SU…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@code-on-git
Comment options

Answer selected by vidyasagarnimmagaddi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants