Untitled

From Colorant Lion, 4 Months ago, written in Plain Text, viewed 61 times.
URL https://code.nat.moe/view/9c8dc203 Embed
Download Paste or View Raw
  1. packer {
  2.   required_plugins {
  3.     azure = {
  4.       version = ">= 1.0.0"
  5.       source  = "github.com/hashicorp/azure"
  6.     }
  7.   }
  8. }
  9.  
  10. source "azure-arm" "basic-example" {
  11.   client_id = "fe354398-d7sf-4dc9-87fd-c432cd8a7e09"
  12.   client_secret = "keepitsecret&#*$"
  13.   resource_group_name = "packerdemo"
  14.   storage_account = "virtualmachines"
  15.   subscription_id = "44cae533-4247-4093-42cf-897ded6e7823"
  16.   tenant_id = "de39842a-caba-497e-a798-7896aea43218"
  17.  
  18.   capture_container_name = "images"
  19.   capture_name_prefix = "packer"
  20.  
  21.   os_type = "Linux"
  22.   image_publisher = "Canonical"
  23.   image_offer = "UbuntuServer"
  24.   image_sku = "14.04.4-LTS"
  25.  
  26.   azure_tags = {
  27.     dept = "engineering"
  28.   }
  29.  
  30.   location = "West US"
  31.   vm_size = "Standard_A2"
  32. }
  33.  
  34. build {
  35.   sources = ["sources.azure-arm.basic-example"]
  36. }

Reply to "Untitled"

Here you can reply to the paste above

captcha