Skip to content

Commit

Permalink
Fix packer build resource group
Browse files Browse the repository at this point in the history
I had accidentally set the `resource_group_name`, which is the group containing the storage account when capturing to a VHD. What I was meaning to set was `build_resource_group_name`, which specifies the group for Packer to use to create its temp resources.
  • Loading branch information
adamconnelly committed Jul 14, 2021
1 parent 537d895 commit 673f921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure/spacelift.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ variable "source_image_sku" {

variable "location" {
type = string
default = "West Europe"
default = ""
}

variable "vm_size" {
Expand Down Expand Up @@ -114,7 +114,7 @@ source "azure-arm" "spacelift" {
image_offer = var.source_image_offer
image_sku = var.source_image_sku

resource_group_name = var.packer_work_group
build_resource_group_name = var.packer_work_group

location = var.location
vm_size = var.vm_size
Expand Down

0 comments on commit 673f921

Please sign in to comment.