|
|
|
|
@ -165,6 +165,9 @@ Providing `temp_resource_group_name` or `location` in combination with
|
|
|
|
|
|
|
|
|
|
Here is a basic example for Azure.
|
|
|
|
|
|
|
|
|
|
<Tabs>
|
|
|
|
|
<Tab heading="JSON">
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"type": "azure-arm",
|
|
|
|
|
@ -193,6 +196,42 @@ Here is a basic example for Azure.
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
|
<Tab heading="HCL2">
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
source "azure-arm" "basic-example" {
|
|
|
|
|
client_id = "fe354398-d7sf-4dc9-87fd-c432cd8a7e09"
|
|
|
|
|
client_secret = "keepitsecret&#*$"
|
|
|
|
|
resource_group_name = "packerdemo"
|
|
|
|
|
storage_account = "virtualmachines"
|
|
|
|
|
subscription_id = "44cae533-4247-4093-42cf-897ded6e7823"
|
|
|
|
|
tenant_id = "de39842a-caba-497e-a798-7896aea43218"
|
|
|
|
|
|
|
|
|
|
capture_container_name = "images"
|
|
|
|
|
capture_name_prefix = "packer"
|
|
|
|
|
|
|
|
|
|
os_type = "Linux"
|
|
|
|
|
image_publisher = "Canonical"
|
|
|
|
|
image_offer = "UbuntuServer"
|
|
|
|
|
image_sku = "14.04.4-LTS"
|
|
|
|
|
|
|
|
|
|
azure_tags = {
|
|
|
|
|
dept = "engineering"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location = "West US"
|
|
|
|
|
vm_size = "Standard_A2"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
build {
|
|
|
|
|
sources = ["sources.azure-arm.basic-example"]
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
|
</Tabs>
|
|
|
|
|
|
|
|
|
|
## Deprovision
|
|
|
|
|
|
|
|
|
|
Azure VMs should be deprovisioned at the end of every build. For Windows this
|
|
|
|
|
|