Skip to content

Instantly share code, notes, and snippets.

@platypython
Created April 7, 2020 12:47
Show Gist options
  • Select an option

  • Save platypython/6b7e1ff4f75fb945700aaf86f8c94dc7 to your computer and use it in GitHub Desktop.

Select an option

Save platypython/6b7e1ff4f75fb945700aaf86f8c94dc7 to your computer and use it in GitHub Desktop.
Packer 1.5.4 Logs
PACKER_LOG=1 /tmp/packer build test.json
2020/04/07 06:37:27 [INFO] Packer version: 1.5.4 [go1.13.7 darwin amd64]
2020/04/07 06:37:27 Checking 'PACKER_CONFIG' for a config file path
2020/04/07 06:37:27 'PACKER_CONFIG' not set; checking the default config file path
2020/04/07 06:37:27 Attempting to open config file: /Users/derrick/.packerconfig
2020/04/07 06:37:27 [WARN] Config file doesn't exist: /Users/derrick/.packerconfig
2020/04/07 06:37:27 Setting cache directory: /Users/derrick/xxx/packer_cache
2020/04/07 06:37:27 Creating plugin client for path: /tmp/packer
2020/04/07 06:37:27 Starting plugin: /tmp/packer []string{"/tmp/packer", "plugin", "packer-builder-azure-arm"}
2020/04/07 06:37:27 Waiting for RPC address for: /tmp/packer
2020/04/07 06:37:28 packer-builder-azure-arm plugin: [INFO] Packer version: 1.5.4 [go1.13.7 darwin amd64]
2020/04/07 06:37:28 packer-builder-azure-arm plugin: Checking 'PACKER_CONFIG' for a config file path
2020/04/07 06:37:28 packer-builder-azure-arm plugin: 'PACKER_CONFIG' not set; checking the default config file path
2020/04/07 06:37:28 packer-builder-azure-arm plugin: Attempting to open config file: /Users/derrick/.packerconfig
2020/04/07 06:37:28 packer-builder-azure-arm plugin: [WARN] Config file doesn't exist: /Users/derrick/.packerconfig
2020/04/07 06:37:28 packer-builder-azure-arm plugin: Setting cache directory: /Users/derrick/xxx/packer_cache
2020/04/07 06:37:28 packer-builder-azure-arm plugin: args: []string{"packer-builder-azure-arm"}
2020/04/07 06:37:28 packer-builder-azure-arm plugin: Plugin address: unix /var/folders/6l/3_4z8b2d1jl2hbnppsj_m0mc0000gn/T/packer-plugin060447934
2020/04/07 06:37:28 packer-builder-azure-arm plugin: Waiting for connection...
2020/04/07 06:37:28 Received unix RPC address for /tmp/packer: addr is /var/folders/6l/3_4z8b2d1jl2hbnppsj_m0mc0000gn/T/packer-plugin060447934
2020/04/07 06:37:28 packer-builder-azure-arm plugin: Serving a plugin connection...
2020/04/07 06:37:28 Creating plugin client for path: /tmp/packer
2020/04/07 06:37:28 Starting plugin: /tmp/packer []string{"/tmp/packer", "plugin", "packer-provisioner-shell"}
2020/04/07 06:37:28 Waiting for RPC address for: /tmp/packer
2020/04/07 06:37:28 packer-provisioner-shell plugin: [INFO] Packer version: 1.5.4 [go1.13.7 darwin amd64]
2020/04/07 06:37:28 packer-provisioner-shell plugin: Checking 'PACKER_CONFIG' for a config file path
2020/04/07 06:37:28 packer-provisioner-shell plugin: 'PACKER_CONFIG' not set; checking the default config file path
2020/04/07 06:37:28 packer-provisioner-shell plugin: Attempting to open config file: /Users/derrick/.packerconfig
2020/04/07 06:37:28 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /Users/derrick/.packerconfig
2020/04/07 06:37:28 packer-provisioner-shell plugin: Setting cache directory: /Users/derrick/xxx/packer_cache
2020/04/07 06:37:28 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2020/04/07 06:37:28 packer-provisioner-shell plugin: Plugin address: unix /var/folders/6l/3_4z8b2d1jl2hbnppsj_m0mc0000gn/T/packer-plugin951490042
2020/04/07 06:37:28 packer-provisioner-shell plugin: Waiting for connection...
2020/04/07 06:37:28 Received unix RPC address for /tmp/packer: addr is /var/folders/6l/3_4z8b2d1jl2hbnppsj_m0mc0000gn/T/packer-plugin951490042
2020/04/07 06:37:28 packer-provisioner-shell plugin: Serving a plugin connection...
2020/04/07 06:37:28 Build debug mode: false
2020/04/07 06:37:28 Force build: false
azure-arm: output will be in this color.
2020/04/07 06:37:28 On error:
2020/04/07 06:37:28 Preparing build: azure-arm
2020/04/07 06:37:28 Waiting on builds to complete...
2020/04/07 06:37:28 Starting build run: azure-arm
2020/04/07 06:37:28 Running builder: azure-arm
2020/04/07 06:37:28 [INFO] (telemetry) Starting builder azure-arm
==> azure-arm: Running builder ...
2020/04/07 06:37:28 packer-builder-azure-arm plugin: :: Configuration
2020/04/07 06:37:28 packer-builder-azure-arm plugin: CaptureNamePrefix=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: CaptureContainerName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: SharedGalleryImageVersionEndOfLifeDate=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ImagePublisher=Canonical
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ImageOffer=UbuntuServer
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ImageSku=16.04.0-LTS
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ImageVersion=latest
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ImageUrl=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: CustomManagedImageName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: CustomManagedImageResourceGroupName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: Location=West US 2
2020/04/07 06:37:28 packer-builder-azure-arm plugin: VMSize=Standard_A2_v2
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ManagedImageResourceGroupName=imageBuilder
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ManagedImageName=partitionedImage
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ManagedImageStorageAccountType=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ManagedImageOSDiskSnapshotName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ManagedImageDataDiskSnapshotPrefix=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: ResourceGroupName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: StorageAccount=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: TempComputeName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: TempResourceGroupName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: BuildResourceGroupName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: BuildKeyVaultName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: VirtualNetworkName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: VirtualNetworkSubnetName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: VirtualNetworkResourceGroupName=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: CustomDataFile=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: OSType=Linux
2020/04/07 06:37:28 packer-builder-azure-arm plugin: DiskCachingType=
2020/04/07 06:37:28 packer-builder-azure-arm plugin: UserName=ubuntu
2020/04/07 06:37:28 packer-builder-azure-arm plugin: Password=********************************
==> azure-arm: Getting tokens using client secret
==> azure-arm: Getting tokens using client secret
azure-arm: Creating Azure Resource Manager (ARM) client ...
2020/04/07 06:37:29 packer-builder-azure-arm plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/xxx/resourcegroups/imageBuilder?api-version=2018-02-01" body=""
2020/04/07 06:37:30 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/resourcegroups/imageBuilder?api-version=2018-02-01" x-ms-request-id="00e92920-87df-4e9a-9824-90912039c5ba" body="{\"id\":\"/subscriptions/xxx/resourceGroups/imageBuilder\",\"name\":\"imageBuilder\",\"location\":\"westus2\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\"}}"
2020/04/07 06:37:30 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/resourcegroups/imageBuilder?api-version=2018-02-01" x-ms-request-id="00e92920-87df-4e9a-9824-90912039c5ba" body="{\"id\":\"/subscriptions/xxx/resourceGroups/imageBuilder\",\"name\":\"imageBuilder\",\"location\":\"westus2\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\"}}"
2020/04/07 06:37:30 packer-builder-azure-arm plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/imageBuilder/providers/Microsoft.Compute/images/partitionedImage?api-version=2018-04-01" body=""
2020/04/07 06:37:30 packer-builder-azure-arm plugin: Azure response status="404 Not Found" method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/imageBuilder/providers/Microsoft.Compute/images/partitionedImage?api-version=2018-04-01" x-ms-request-id="b377b99e-9a16-4aaf-aa54-5b3d601760a0" body="{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Compute/images/partitionedImage' under resource group 'imageBuilder' was not found.\"}}"
2020/04/07 06:37:30 packer-builder-azure-arm plugin: Azure response method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/imageBuilder/providers/Microsoft.Compute/images/partitionedImage?api-version=2018-04-01" x-ms-request-id="b377b99e-9a16-4aaf-aa54-5b3d601760a0" body="{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Compute/images/partitionedImage' under resource group 'imageBuilder' was not found.\"}}" status="404 Not Found"
==> azure-arm: WARNING: Zone resiliency may not be supported in West US 2, checkout the docs at https://docs.microsoft.com/en-us/azure/availability-zones/
2020/04/07 06:37:30 packer-builder-azure-arm plugin: Azure request method="HEAD" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3?api-version=2018-02-01" body=""
2020/04/07 06:37:30 packer-builder-azure-arm plugin: Azure response status="404 Not Found" method="HEAD" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3?api-version=2018-02-01" x-ms-request-id="48b7fbf1-a11f-4455-8880-160a86d7e8b9" body=""
2020/04/07 06:37:30 packer-builder-azure-arm plugin: Azure response status="404 Not Found" method="HEAD" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3?api-version=2018-02-01" x-ms-request-id="48b7fbf1-a11f-4455-8880-160a86d7e8b9" body=""
==> azure-arm: Creating resource group ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-y4c1dvqwd3'
==> azure-arm: -> Location : 'West US 2'
==> azure-arm: -> Tags :
2020/04/07 06:37:30 packer-builder-azure-arm plugin: Azure request method="PUT" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3?api-version=2018-02-01" body="{\"location\":\"West US 2\"}"
2020/04/07 06:37:32 packer-builder-azure-arm plugin: Azure response status="201 Created" method="PUT" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3?api-version=2018-02-01" x-ms-request-id="4b9ec54a-0621-489f-bc0a-8cd2edec3142" body="{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3\",\"name\":\"packer-Resource-Group-y4c1dvqwd3\",\"location\":\"westus2\",\"properties\":{\"provisioningState\":\"Succeeded\"}}"
2020/04/07 06:37:32 packer-builder-azure-arm plugin: Azure response status="201 Created" method="PUT" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3?api-version=2018-02-01" x-ms-request-id="4b9ec54a-0621-489f-bc0a-8cd2edec3142" body="{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3\",\"name\":\"packer-Resource-Group-y4c1dvqwd3\",\"location\":\"westus2\",\"properties\":{\"provisioningState\":\"Succeeded\"}}"
==> azure-arm: Validating deployment template ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-y4c1dvqwd3'
==> azure-arm: -> DeploymentName : 'pkrdpy4c1dvqwd3'
2020/04/07 06:37:32 packer-builder-azure-arm plugin: Azure request method="POST" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3/validate?api-version=2018-02-01" body="{\"properties\":{\"template\":{\"$schema\":\"http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json\",\"contentVersion\":\"1.0.0.0\",\"parameters\":{\"adminPassword\":{\"type\":\"string\"},\"adminUsername\":{\"type\":\"string\"},\"dnsNameForPublicIP\":{\"type\":\"string\"},\"nicName\":{\"type\":\"string\"},\"nsgName\":{\"type\":\"string\"},\"osDiskName\":{\"type\":\"string\"},\"publicIPAddressName\":{\"type\":\"string\"},\"storageAccountBlobEndpoint\":{\"type\":\"string\"},\"subnetName\":{\"type\":\"string\"},\"virtualNetworkName\":{\"type\":\"string\"},\"vmName\":{\"type\":\"string\"},\"vmSize\":{\"type\":\"string\"}},\"resources\":[{\"apiVersion\":\"[variables('publicIPAddressApiVersion')]\",\"location\":\"[variables('location')]\",\"name\":\"[parameters('publicIPAddressName')]\",\"properties\":{\"dnsSettings\":{\"domainNameLabel\":\"[parameters('dnsNameForPublicIP')]\"},\"publicIPAllocationMethod\":\"[variables('publicIPAddressType')]\"},\"type\":\"Microsoft.Network/publicIPAddresses\"},{\"apiVersion\":\"[variables('virtualNetworksApiVersion')]\",\"location\":\"[variables('location')]\",\"name\":\"[variables('virtualNetworkName')]\",\"properties\":{\"addressSpace\":{\"addressPrefixes\":[\"[variables('addressPrefix')]\"]},\"subnets\":[{\"name\":\"[variables('subnetName')]\",\"properties\":{\"addressPrefix\":\"[variables('subnetAddressPrefix')]\"}}]},\"type\":\"Microsoft.Network/virtualNetworks\"},{\"apiVersion\":\"[variables('networkInterfacesApiVersion')]\",\"dependsOn\":[\"[concat('Microsoft.Network/publicIPAddresses/', parameters('publicIPAddressName'))]\",\"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]\"],\"location\":\"[variables('location')]\",\"name\":\"[parameters('nicName')]\",\"properties\":{\"ipConfigurations\":[{\"name\":\"ipconfig\",\"properties\":{\"privateIPAllocationMethod\":\"Dynamic\",\"publicIPAddress\":{\"id\":\"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddressName'))]\"},\"subnet\":{\"id\":\"[variables('subnetRef')]\"}}}]},\"type\":\"Microsoft.Network/networkInterfaces\"},{\"apiVersion\":\"[variables('apiVersion')]\",\"dependsOn\":[\"[concat('Microsoft.Network/networkInterfaces/', parameters('nicName'))]\"],\"location\":\"[variables('location')]\",\"name\":\"[parameters('vmName')]\",\"properties\":{\"diagnosticsProfile\":{\"bootDiagnostics\":{\"enabled\":false}},\"hardwareProfile\":{\"vmSize\":\"[parameters('vmSize')]\"},\"networkProfile\":{\"networkInterfaces\":[{\"id\":\"[resourceId('Microsoft.Network/networkInterfaces', parameters('nicName'))]\"}]},\"osProfile\":{\"adminPassword\":\"[parameters('adminPassword')]\",\"adminUsername\":\"[parameters('adminUsername')]\",\"computerName\":\"[parameters('vmName')]\",\"linuxConfiguration\":{\"ssh\":{\"publicKeys\":[{\"keyData\":\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXNcYEcJCNI5RyjliZAmi3oMjoB3r63jyuanmsAgcQWTIpQLGcGVrA3DKIZjPO7uNYz1R6mq3BklgyXqPpDWuk4wr80K79Qh9ly9faRztQQnCxqINLCoeu7fiUz8ApPCrl2wOuUqsNNQ50zN1TXhxgyOPdNidE0Hh5QbDqOpHVeIeLZu4IzOy+4bDzHF4Kq4/Q0br0mnc2gGCvZuAdtl2JNMK+ii39/dEEOj8nREOSa9I7JR0ObAHL5PoBRIGDCVv6ro7vwoP52CIDRPMMckYBtbSsD+aO8WazrMXDpA7RYhzm8S47/odU9l2SuqqE6YQQc5U4GsxFZq5mF+6gXELl packer Azure Deployment2020-04-07T06:37:28-06:00\",\"path\":\"[variables('sshKeyPath')]\"}]}}},\"storageProfile\":{\"imageReference\":{\"offer\":\"UbuntuServer\",\"publisher\":\"Canonical\",\"sku\":\"16.04.0-LTS\",\"version\":\"latest\"},\"osDisk\":{\"caching\":\"ReadWrite\",\"createOption\":\"FromImage\",\"managedDisk\":{\"storageAccountType\":\"Standard_LRS\"},\"name\":\"[parameters('osDiskName')]\",\"osType\":\"Linux\"}}},\"type\":\"Microsoft.Compute/virtualMachines\"}],\"variables\":{\"addressPrefix\":\"10.0.0.0/16\",\"apiVersion\":\"2017-03-30\",\"location\":\"[resourceGroup().location]\",\"managedDiskApiVersion\":\"2017-03-30\",\"networkInterfacesApiVersion\":\"2017-04-01\",\"networkSecurityGroupsApiVersion\":\"2019-04-01\",\"publicIPAddressApiVersion\":\"2017-04-01\",\"publicIPAddressType\":\"Dynamic\",\"sshKeyPath\":\"[concat('/home/',parameters('adminUsername'),'/.ssh/authorized_keys')]\",\"subnetAddressPrefix\":\"10.0.0.0/24\",\"subnetName\":\"[parameters('subnetName')]\",\"subnetRef\":\"[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]\",\"virtualNetworkName\":\"[parameters('virtualNetworkName')]\",\"virtualNetworkResourceGroup\":\"[resourceGroup().name]\",\"virtualNetworksApiVersion\":\"2017-04-01\",\"vmStorageAccountContainerName\":\"images\",\"vnetID\":\"[resourceId(variables('virtualNetworkResourceGroup'), 'Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]\"}},\"parameters\":{\"adminPassword\":{\"value\":\"<sensitive>\"},\"adminUsername\":{\"value\":\"ubuntu\"},\"dnsNameForPublicIP\":{\"value\":\"pkrvmy4c1dvqwd3\"},\"nicName\":{\"value\":\"pkrniy4c1dvqwd3\"},\"nsgName\":{\"value\":\"pkrsgy4c1dvqwd3\"},\"osDiskName\":{\"value\":\"pkrosy4c1dvqwd3\"},\"publicIPAddressName\":{\"value\":\"pkripy4c1dvqwd3\"},\"storageAccountBlobEndpoint\":{\"value\":\"\"},\"subnetName\":{\"value\":\"pkrsny4c1dvqwd3\"},\"virtualNetworkName\":{\"value\":\"pkrvny4c1dvqwd3\"},\"vmName\":{\"value\":\"pkrvmy4c1dvqwd3\"},\"vmSize\":{\"value\":\"Standard_A2_v2\"}},\"mode\":\"Incremental\"}}"
2020/04/07 06:37:33 packer-builder-azure-arm plugin: Azure response status="200 OK" method="POST" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3/validate?api-version=2018-02-01" x-ms-request-id="00342769-91a7-4b89-9bb6-71c96180f9d7" body="{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3\",\"name\":\"pkrdpy4c1dvqwd3\",\"properties\":{\"templateHash\":\"13683693369421465384\",\"parameters\":{\"adminPassword\":{\"type\":\"String\",\"value\":\"<sensitive>\"},\"adminUsername\":{\"type\":\"String\",\"value\":\"ubuntu\"},\"dnsNameForPublicIP\":{\"type\":\"String\",\"value\":\"pkrvmy4c1dvqwd3\"},\"nicName\":{\"type\":\"String\",\"value\":\"pkrniy4c1dvqwd3\"},\"nsgName\":{\"type\":\"String\",\"value\":\"pkrsgy4c1dvqwd3\"},\"osDiskName\":{\"type\":\"String\",\"value\":\"pkrosy4c1dvqwd3\"},\"publicIPAddressName\":{\"type\":\"String\",\"value\":\"pkripy4c1dvqwd3\"},\"storageAccountBlobEndpoint\":{\"type\":\"String\",\"value\":\"\"},\"subnetName\":{\"type\":\"String\",\"value\":\"pkrsny4c1dvqwd3\"},\"virtualNetworkName\":{\"type\":\"String\",\"value\":\"pkrvny4c1dvqwd3\"},\"vmName\":{\"type\":\"String\",\"value\":\"pkrvmy4c1dvqwd3\"},\"vmSize\":{\"type\":\"String\",\"value\":\"Standard_A2_v2\"}},\"mode\":\"Incremental\",\"provisioningState\":\"Succeeded\",\"timestamp\":\"2020-04-07T12:37:32.5752961Z\",\"duration\":\"PT0S\",\"correlationId\":\"00342769-91a7-4b89-9bb6-71c96180f9d7\",\"providers\":[{\"namespace\":\"Microsoft.Network\",\"resourceTypes\":[{\"resourceType\":\"publicIPAddresses\",\"locations\":[\"westus2\"]},{\"resourceType\":\"virtualNetworks\",\"locations\":[\"westus2\"]},{\"resourceType\":\"networkInterfaces\",\"locations\":[\"westus2\"]}]},{\"namespace\":\"Microsoft.Compute\",\"resourceTypes\":[{\"resourceType\":\"virtualMachines\",\"locations\":[\"westus2\"]}]}],\"dependencies\":[{\"dependsOn\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/publicIPAddresses\",\"resourceName\":\"pkripy4c1dvqwd3\"},{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/virtualNetworks/pkrvny4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/virtualNetworks\",\"resourceName\":\"pkrvny4c1dvqwd3\"}],\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/networkInterfaces\",\"resourceName\":\"pkrniy4c1dvqwd3\"},{\"dependsOn\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/networkInterfaces\",\"resourceName\":\"pkrniy4c1dvqwd3\"}],\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3\",\"resourceType\":\"Microsoft.Compute/virtualMachines\",\"resourceName\":\"pkrvmy4c1dvqwd3\"}],\"validatedResources\":[{\"apiVersion\":\"2017-04-01\",\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\",\"name\":\"pkripy4c1dvqwd3\",\"type\":\"Microsoft.Network/publicIPAddresses\",\"location\":\"westus2\",\"properties\":{\"dnsSettings\":{\"domainNameLabel\":\"pkrvmy4c1dvqwd3\"},\"publicIPAllocationMethod\":\"Dynamic\"}},{\"apiVersion\":\"2017-04-01\",\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/virtualNetworks/pkrvny4c1dvqwd3\",\"name\":\"pkrvny4c1dvqwd3\",\"type\":\"Microsoft.Network/virtualNetworks\",\"location\":\"westus2\",\"properties\":{\"addressSpace\":{\"addressPrefixes\":[\"10.0.0.0/16\"]},\"subnets\":[{\"name\":\"pkrsny4c1dvqwd3\",\"properties\":{\"addressPrefix\":\"10.0.0.0/24\"}}]}},{\"dependsOn\":[\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\",\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/virtualNetworks/pkrvny4c1dvqwd3\"],\"apiVersion\":\"2017-04-01\",\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\",\"name\":\"pkrniy4c1dvqwd3\",\"type\":\"Microsoft.Network/networkInterfaces\",\"location\":\"westus2\",\"properties\":{\"ipConfigurations\":[{\"name\":\"ipconfig\",\"properties\":{\"privateIPAllocationMethod\":\"Dynamic\",\"publicIPAddress\":{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\"},\"subnet\":{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/virtualNetworks/pkrvny4c1dvqwd3/subnets/pkrsny4c1dvqwd3\"}}}]}},{\"dependsOn\":[\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\"],\"apiVersion\":\"2017-03-30\",\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3\",\"name\":\"pkrvmy4c1dvqwd3\",\"type\":\"Microsoft.Compute/virtualMachines\",\"location\":\"westus2\",\"properties\":{\"diagnosticsProfile\":{\"bootDiagnostics\":{\"enabled\":false}},\"hardwareProfile\":{\"vmSize\":\"Standard_A2_v2\"},\"networkProfile\":{\"networkInterfaces\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\"}]},\"osProfile\":{\"adminPassword\":\"<sensitive>\",\"adminUsername\":\"ubuntu\",\"computerName\":\"pkrvmy4c1dvqwd3\",\"linuxConfiguration\":{\"ssh\":{\"publicKeys\":[{\"keyData\":\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXNcYEcJCNI5RyjliZAmi3oMjoB3r63jyuanmsAgcQWTIpQLGcGVrA3DKIZjPO7uNYz1R6mq3BklgyXqPpDWuk4wr80K79Qh9ly9faRztQQnCxqINLCoeu7fiUz8ApPCrl2wOuUqsNNQ50zN1TXhxgyOPdNidE0Hh5QbDqOpHVeIeLZu4IzOy+4bDzHF4Kq4/Q0br0mnc2gGCvZuAdtl2JNMK+ii39/dEEOj8nREOSa9I7JR0ObAHL5PoBRIGDCVv6ro7vwoP52CIDRPMMckYBtbSsD+aO8WazrMXDpA7RYhzm8S47/odU9l2SuqqE6YQQc5U4GsxFZq5mF+6gXELl packer Azure Deployment2020-04-07T06:37:28-06:00\",\"path\":\"/home/ubuntu/.ssh/authorized_keys\"}]}}},\"storageProfile\":{\"imageReference\":{\"offer\":\"UbuntuServer\",\"publisher\":\"Canonical\",\"sku\":\"16.04.0-LTS\",\"version\":\"latest\"},\"osDisk\":{\"caching\":\"ReadWrite\",\"createOption\":\"FromImage\",\"managedDisk\":{\"storageAccountType\":\"Standard_LRS\"},\"name\":\"pkrosy4c1dvqwd3\",\"osType\":\"Linux\"}}}}]}}"
2020/04/07 06:37:33 packer-builder-azure-arm plugin: Azure response status="200 OK" method="POST" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3/validate?api-version=2018-02-01" x-ms-request-id="00342769-91a7-4b89-9bb6-71c96180f9d7" body="{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3\",\"name\":\"pkrdpy4c1dvqwd3\",\"properties\":{\"templateHash\":\"13683693369421465384\",\"parameters\":{\"adminPassword\":{\"type\":\"String\",\"value\":\"<sensitive>\"},\"adminUsername\":{\"type\":\"String\",\"value\":\"ubuntu\"},\"dnsNameForPublicIP\":{\"type\":\"String\",\"value\":\"pkrvmy4c1dvqwd3\"},\"nicName\":{\"type\":\"String\",\"value\":\"pkrniy4c1dvqwd3\"},\"nsgName\":{\"type\":\"String\",\"value\":\"pkrsgy4c1dvqwd3\"},\"osDiskName\":{\"type\":\"String\",\"value\":\"pkrosy4c1dvqwd3\"},\"publicIPAddressName\":{\"type\":\"String\",\"value\":\"pkripy4c1dvqwd3\"},\"storageAccountBlobEndpoint\":{\"type\":\"String\",\"value\":\"\"},\"subnetName\":{\"type\":\"String\",\"value\":\"pkrsny4c1dvqwd3\"},\"virtualNetworkName\":{\"type\":\"String\",\"value\":\"pkrvny4c1dvqwd3\"},\"vmName\":{\"type\":\"String\",\"value\":\"pkrvmy4c1dvqwd3\"},\"vmSize\":{\"type\":\"String\",\"value\":\"Standard_A2_v2\"}},\"mode\":\"Incremental\",\"provisioningState\":\"Succeeded\",\"timestamp\":\"2020-04-07T12:37:32.5752961Z\",\"duration\":\"PT0S\",\"correlationId\":\"00342769-91a7-4b89-9bb6-71c96180f9d7\",\"providers\":[{\"namespace\":\"Microsoft.Network\",\"resourceTypes\":[{\"resourceType\":\"publicIPAddresses\",\"locations\":[\"westus2\"]},{\"resourceType\":\"virtualNetworks\",\"locations\":[\"westus2\"]},{\"resourceType\":\"networkInterfaces\",\"locations\":[\"westus2\"]}]},{\"namespace\":\"Microsoft.Compute\",\"resourceTypes\":[{\"resourceType\":\"virtualMachines\",\"locations\":[\"westus2\"]}]}],\"dependencies\":[{\"dependsOn\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/publicIPAddresses\",\"resourceName\":\"pkripy4c1dvqwd3\"},{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/virtualNetworks/pkrvny4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/virtualNetworks\",\"resourceName\":\"pkrvny4c1dvqwd3\"}],\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/networkInterfaces\",\"resourceName\":\"pkrniy4c1dvqwd3\"},{\"dependsOn\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/networkInterfaces\",\"resourceName\":\"pkrniy4c1dvqwd3\"}],\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3\",\"resourceType\":\"Microsoft.Compute/virtualMachines\",\"resourceName\":\"pkrvmy4c1dvqwd3\"}],\"validatedResources\":[{\"apiVersion\":\"2017-04-01\",\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\",\"name\":\"pkripy4c1dvqwd3\",\"type\":\"Microsoft.Network/publicIPAddresses\",\"location\":\"westus2\",\"properties\":{\"dnsSettings\":{\"domainNameLabel\":\"pkrvmy4c1dvqwd3\"},\"publicIPAllocationMethod\":\"Dynamic\"}},{\"apiVersion\":\"2017-04-01\",\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/virtualNetworks/pkrvny4c1dvqwd3\",\"name\":\"pkrvny4c1dvqwd3\",\"type\":\"Microsoft.Network/virtualNetworks\",\"location\":\"westus2\",\"properties\":{\"addressSpace\":{\"addressPrefixes\":[\"10.0.0.0/16\"]},\"subnets\":[{\"name\":\"pkrsny4c1dvqwd3\",\"properties\":{\"addressPrefix\":\"10.0.0.0/24\"}}]}},{\"dependsOn\":[\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\",\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/virtualNetworks/pkrvny4c1dvqwd3\"],\"apiVersion\":\"2017-04-01\",\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\",\"name\":\"pkrniy4c1dvqwd3\",\"type\":\"Microsoft.Network/networkInterfaces\",\"location\":\"westus2\",\"properties\":{\"ipConfigurations\":[{\"name\":\"ipconfig\",\"properties\":{\"privateIPAllocationMethod\":\"Dynamic\",\"publicIPAddress\":{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\"},\"subnet\":{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/virtualNetworks/pkrvny4c1dvqwd3/subnets/pkrsny4c1dvqwd3\"}}}]}},{\"dependsOn\":[\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\"],\"apiVersion\":\"2017-03-30\",\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3\",\"name\":\"pkrvmy4c1dvqwd3\",\"type\":\"Microsoft.Compute/virtualMachines\",\"location\":\"westus2\",\"properties\":{\"diagnosticsProfile\":{\"bootDiagnostics\":{\"enabled\":false}},\"hardwareProfile\":{\"vmSize\":\"Standard_A2_v2\"},\"networkProfile\":{\"networkInterfaces\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\"}]},\"osProfile\":{\"adminPassword\":\"<sensitive>\",\"adminUsername\":\"ubuntu\",\"computerName\":\"pkrvmy4c1dvqwd3\",\"linuxConfiguration\":{\"ssh\":{\"publicKeys\":[{\"keyData\":\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXNcYEcJCNI5RyjliZAmi3oMjoB3r63jyuanmsAgcQWTIpQLGcGVrA3DKIZjPO7uNYz1R6mq3BklgyXqPpDWuk4wr80K79Qh9ly9faRztQQnCxqINLCoeu7fiUz8ApPCrl2wOuUqsNNQ50zN1TXhxgyOPdNidE0Hh5QbDqOpHVeIeLZu4IzOy+4bDzHF4Kq4/Q0br0mnc2gGCvZuAdtl2JNMK+ii39/dEEOj8nREOSa9I7JR0ObAHL5PoBRIGDCVv6ro7vwoP52CIDRPMMckYBtbSsD+aO8WazrMXDpA7RYhzm8S47/odU9l2SuqqE6YQQc5U4GsxFZq5mF+6gXELl packer Azure Deployment2020-04-07T06:37:28-06:00\",\"path\":\"/home/ubuntu/.ssh/authorized_keys\"}]}}},\"storageProfile\":{\"imageReference\":{\"offer\":\"UbuntuServer\",\"publisher\":\"Canonical\",\"sku\":\"16.04.0-LTS\",\"version\":\"latest\"},\"osDisk\":{\"caching\":\"ReadWrite\",\"createOption\":\"FromImage\",\"managedDisk\":{\"storageAccountType\":\"Standard_LRS\"},\"name\":\"pkrosy4c1dvqwd3\",\"osType\":\"Linux\"}}}}]}}"
==> azure-arm: Deploying deployment template ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-y4c1dvqwd3'
==> azure-arm: -> DeploymentName : 'pkrdpy4c1dvqwd3'
2020/04/07 06:37:33 packer-builder-azure-arm plugin: Azure request request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3?api-version=2018-02-01" body="{\"properties\":{\"template\":{\"$schema\":\"http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json\",\"contentVersion\":\"1.0.0.0\",\"parameters\":{\"adminPassword\":{\"type\":\"string\"},\"adminUsername\":{\"type\":\"string\"},\"dnsNameForPublicIP\":{\"type\":\"string\"},\"nicName\":{\"type\":\"string\"},\"nsgName\":{\"type\":\"string\"},\"osDiskName\":{\"type\":\"string\"},\"publicIPAddressName\":{\"type\":\"string\"},\"storageAccountBlobEndpoint\":{\"type\":\"string\"},\"subnetName\":{\"type\":\"string\"},\"virtualNetworkName\":{\"type\":\"string\"},\"vmName\":{\"type\":\"string\"},\"vmSize\":{\"type\":\"string\"}},\"resources\":[{\"apiVersion\":\"[variables('publicIPAddressApiVersion')]\",\"location\":\"[variables('location')]\",\"name\":\"[parameters('publicIPAddressName')]\",\"properties\":{\"dnsSettings\":{\"domainNameLabel\":\"[parameters('dnsNameForPublicIP')]\"},\"publicIPAllocationMethod\":\"[variables('publicIPAddressType')]\"},\"type\":\"Microsoft.Network/publicIPAddresses\"},{\"apiVersion\":\"[variables('virtualNetworksApiVersion')]\",\"location\":\"[variables('location')]\",\"name\":\"[variables('virtualNetworkName')]\",\"properties\":{\"addressSpace\":{\"addressPrefixes\":[\"[variables('addressPrefix')]\"]},\"subnets\":[{\"name\":\"[variables('subnetName')]\",\"properties\":{\"addressPrefix\":\"[variables('subnetAddressPrefix')]\"}}]},\"type\":\"Microsoft.Network/virtualNetworks\"},{\"apiVersion\":\"[variables('networkInterfacesApiVersion')]\",\"dependsOn\":[\"[concat('Microsoft.Network/publicIPAddresses/', parameters('publicIPAddressName'))]\",\"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]\"],\"location\":\"[variables('location')]\",\"name\":\"[parameters('nicName')]\",\"properties\":{\"ipConfigurations\":[{\"name\":\"ipconfig\",\"properties\":{\"privateIPAllocationMethod\":\"Dynamic\",\"publicIPAddress\":{\"id\":\"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddressName'))]\"},\"subnet\":{\"id\":\"[variables('subnetRef')]\"}}}]},\"type\":\"Microsoft.Network/networkInterfaces\"},{\"apiVersion\":\"[variables('apiVersion')]\",\"dependsOn\":[\"[concat('Microsoft.Network/networkInterfaces/', parameters('nicName'))]\"],\"location\":\"[variables('location')]\",\"name\":\"[parameters('vmName')]\",\"properties\":{\"diagnosticsProfile\":{\"bootDiagnostics\":{\"enabled\":false}},\"hardwareProfile\":{\"vmSize\":\"[parameters('vmSize')]\"},\"networkProfile\":{\"networkInterfaces\":[{\"id\":\"[resourceId('Microsoft.Network/networkInterfaces', parameters('nicName'))]\"}]},\"osProfile\":{\"adminPassword\":\"[parameters('adminPassword')]\",\"adminUsername\":\"[parameters('adminUsername')]\",\"computerName\":\"[parameters('vmName')]\",\"linuxConfiguration\":{\"ssh\":{\"publicKeys\":[{\"keyData\":\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXNcYEcJCNI5RyjliZAmi3oMjoB3r63jyuanmsAgcQWTIpQLGcGVrA3DKIZjPO7uNYz1R6mq3BklgyXqPpDWuk4wr80K79Qh9ly9faRztQQnCxqINLCoeu7fiUz8ApPCrl2wOuUqsNNQ50zN1TXhxgyOPdNidE0Hh5QbDqOpHVeIeLZu4IzOy+4bDzHF4Kq4/Q0br0mnc2gGCvZuAdtl2JNMK+ii39/dEEOj8nREOSa9I7JR0ObAHL5PoBRIGDCVv6ro7vwoP52CIDRPMMckYBtbSsD+aO8WazrMXDpA7RYhzm8S47/odU9l2SuqqE6YQQc5U4GsxFZq5mF+6gXELl packer Azure Deployment2020-04-07T06:37:28-06:00\",\"path\":\"[variables('sshKeyPath')]\"}]}}},\"storageProfile\":{\"imageReference\":{\"offer\":\"UbuntuServer\",\"publisher\":\"Canonical\",\"sku\":\"16.04.0-LTS\",\"version\":\"latest\"},\"osDisk\":{\"caching\":\"ReadWrite\",\"createOption\":\"FromImage\",\"managedDisk\":{\"storageAccountType\":\"Standard_LRS\"},\"name\":\"[parameters('osDiskName')]\",\"osType\":\"Linux\"}}},\"type\":\"Microsoft.Compute/virtualMachines\"}],\"variables\":{\"addressPrefix\":\"10.0.0.0/16\",\"apiVersion\":\"2017-03-30\",\"location\":\"[resourceGroup().location]\",\"managedDiskApiVersion\":\"2017-03-30\",\"networkInterfacesApiVersion\":\"2017-04-01\",\"networkSecurityGroupsApiVersion\":\"2019-04-01\",\"publicIPAddressApiVersion\":\"2017-04-01\",\"publicIPAddressType\":\"Dynamic\",\"sshKeyPath\":\"[concat('/home/',parameters('adminUsername'),'/.ssh/authorized_keys')]\",\"subnetAddressPrefix\":\"10.0.0.0/24\",\"subnetName\":\"[parameters('subnetName')]\",\"subnetRef\":\"[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]\",\"virtualNetworkName\":\"[parameters('virtualNetworkName')]\",\"virtualNetworkResourceGroup\":\"[resourceGroup().name]\",\"virtualNetworksApiVersion\":\"2017-04-01\",\"vmStorageAccountContainerName\":\"images\",\"vnetID\":\"[resourceId(variables('virtualNetworkResourceGroup'), 'Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]\"}},\"parameters\":{\"adminPassword\":{\"value\":\"<sensitive>\"},\"adminUsername\":{\"value\":\"ubuntu\"},\"dnsNameForPublicIP\":{\"value\":\"pkrvmy4c1dvqwd3\"},\"nicName\":{\"value\":\"pkrniy4c1dvqwd3\"},\"nsgName\":{\"value\":\"pkrsgy4c1dvqwd3\"},\"osDiskName\":{\"value\":\"pkrosy4c1dvqwd3\"},\"publicIPAddressName\":{\"value\":\"pkripy4c1dvqwd3\"},\"storageAccountBlobEndpoint\":{\"value\":\"\"},\"subnetName\":{\"value\":\"pkrsny4c1dvqwd3\"},\"virtualNetworkName\":{\"value\":\"pkrvny4c1dvqwd3\"},\"vmName\":{\"value\":\"pkrvmy4c1dvqwd3\"},\"vmSize\":{\"value\":\"Standard_A2_v2\"}},\"mode\":\"Incremental\"}}" method="PUT"
2020/04/07 06:37:35 packer-builder-azure-arm plugin: Azure response status="201 Created" method="PUT" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3?api-version=2018-02-01" x-ms-request-id="2e5958b0-cfab-4e4b-a429-2b5a506bc60f" body="{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3\",\"name\":\"pkrdpy4c1dvqwd3\",\"properties\":{\"templateHash\":\"13683693369421465384\",\"parameters\":{\"adminPassword\":{\"type\":\"String\",\"value\":\"<sensitive>\"},\"adminUsername\":{\"type\":\"String\",\"value\":\"ubuntu\"},\"dnsNameForPublicIP\":{\"type\":\"String\",\"value\":\"pkrvmy4c1dvqwd3\"},\"nicName\":{\"type\":\"String\",\"value\":\"pkrniy4c1dvqwd3\"},\"nsgName\":{\"type\":\"String\",\"value\":\"pkrsgy4c1dvqwd3\"},\"osDiskName\":{\"type\":\"String\",\"value\":\"pkrosy4c1dvqwd3\"},\"publicIPAddressName\":{\"type\":\"String\",\"value\":\"pkripy4c1dvqwd3\"},\"storageAccountBlobEndpoint\":{\"type\":\"String\",\"value\":\"\"},\"subnetName\":{\"type\":\"String\",\"value\":\"pkrsny4c1dvqwd3\"},\"virtualNetworkName\":{\"type\":\"String\",\"value\":\"pkrvny4c1dvqwd3\"},\"vmName\":{\"type\":\"String\",\"value\":\"pkrvmy4c1dvqwd3\"},\"vmSize\":{\"type\":\"String\",\"value\":\"Standard_A2_v2\"}},\"mode\":\"Incremental\",\"provisioningState\":\"Accepted\",\"timestamp\":\"2020-04-07T12:37:35.0862536Z\",\"duration\":\"PT1.5158586S\",\"correlationId\":\"2e5958b0-cfab-4e4b-a429-2b5a506bc60f\",\"providers\":[{\"namespace\":\"Microsoft.Network\",\"resourceTypes\":[{\"resourceType\":\"publicIPAddresses\",\"locations\":[\"westus2\"]},{\"resourceType\":\"virtualNetworks\",\"locations\":[\"westus2\"]},{\"resourceType\":\"networkInterfaces\",\"locations\":[\"westus2\"]}]},{\"namespace\":\"Microsoft.Compute\",\"resourceTypes\":[{\"resourceType\":\"virtualMachines\",\"locations\":[\"westus2\"]}]}],\"dependencies\":[{\"dependsOn\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/publicIPAddresses\",\"resourceName\":\"pkripy4c1dvqwd3\"},{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/virtualNetworks/pkrvny4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/virtualNetworks\",\"resourceName\":\"pkrvny4c1dvqwd3\"}],\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/networkInterfaces\",\"resourceName\":\"pkrniy4c1dvqwd3\"},{\"dependsOn\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\",\"resourceType\":\"Microsoft.Network/networkInterfaces\",\"resourceName\":\"pkrniy4c1dvqwd3\"}],\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3\",\"resourceType\":\"Microsoft.Compute/virtualMachines\",\"resourceName\":\"pkrvmy4c1dvqwd3\"}]}}"
2020/04/07 06:37:35 packer-builder-azure-arm plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3/operationStatuses/08586153438319072640?api-version=2018-02-01" body=""
2020/04/07 06:37:35 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3/operationStatuses/08586153438319072640?api-version=2018-02-01" x-ms-request-id="635148d3-1d21-45fc-8778-53e28dfbfcad" body="{\"status\":\"Accepted\"}"
2020/04/07 06:38:35 packer-builder-azure-arm plugin: Azure request body="" method="GET" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3/operationStatuses/08586153438319072640?api-version=2018-02-01"
2020/04/07 06:38:36 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3/operationStatuses/08586153438319072640?api-version=2018-02-01" x-ms-request-id="d2a6cc39-98c1-4942-aa1f-04064cbfe160" body="{\"status\":\"Running\"}"
2020/04/07 06:39:36 packer-builder-azure-arm plugin: Azure request body="" method="GET" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3/operationStatuses/08586153438319072640?api-version=2018-02-01"
2020/04/07 06:39:36 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/resourcegroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Resources/deployments/pkrdpy4c1dvqwd3/operationStatuses/08586153438319072640?api-version=2018-02-01" x-ms-request-id="17ad3156-2eac-4dfa-9cc8-c0cfe7f23fb9" body="{\"status\":\"Succeeded\"}"
==> azure-arm: Getting the VM's IP address ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-y4c1dvqwd3'
==> azure-arm: -> PublicIPAddressName : 'pkripy4c1dvqwd3'
==> azure-arm: -> NicName : 'pkrniy4c1dvqwd3'
==> azure-arm: -> Network Connection : 'PublicEndpoint'
2020/04/07 06:39:36 packer-builder-azure-arm plugin: Azure request request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3?api-version=2018-01-01" body="" method="GET"
2020/04/07 06:39:36 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3?api-version=2018-01-01" x-ms-request-id="3102eb08-d6aa-4d14-b8d7-a71a016262b5" body="{\r\n \"name\": \"pkripy4c1dvqwd3\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\",\r\n \"etag\": \"W/\\\"ecc55d05-1935-4a38-9043-a378cd0a24f1\\\"\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"7861821c-1881-4be2-aa5f-1b8920b0b644\",\r\n \"ipAddress\": \"52.247.193.174\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"pkrvmy4c1dvqwd3\",\r\n \"fqdn\": \"pkrvmy4c1dvqwd3.westus2.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3/ipConfigurations/ipconfig\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"
2020/04/07 06:39:36 packer-builder-azure-arm plugin: Azure response method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3?api-version=2018-01-01" x-ms-request-id="3102eb08-d6aa-4d14-b8d7-a71a016262b5" body="{\r\n \"name\": \"pkripy4c1dvqwd3\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/publicIPAddresses/pkripy4c1dvqwd3\",\r\n \"etag\": \"W/\\\"ecc55d05-1935-4a38-9043-a378cd0a24f1\\\"\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"7861821c-1881-4be2-aa5f-1b8920b0b644\",\r\n \"ipAddress\": \"52.247.193.174\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n \"domainNameLabel\": \"pkrvmy4c1dvqwd3\",\r\n \"fqdn\": \"pkrvmy4c1dvqwd3.westus2.cloudapp.azure.com\"\r\n },\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3/ipConfigurations/ipconfig\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}" status="200 OK"
==> azure-arm: -> IP Address : '52.247.193.174'
2020/04/07 06:39:36 packer-builder-azure-arm plugin: [INFO] Waiting for SSH, up to timeout: 20m0s
==> azure-arm: Waiting for SSH to become available...
2020/04/07 06:39:36 packer-builder-azure-arm plugin: [INFO] Attempting SSH connection to 52.247.193.174:22...
2020/04/07 06:39:36 packer-builder-azure-arm plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/04/07 06:39:36 packer-builder-azure-arm plugin: [DEBUG] handshaking with SSH
2020/04/07 06:39:37 packer-builder-azure-arm plugin: [DEBUG] handshake complete!
2020/04/07 06:39:37 packer-builder-azure-arm plugin: [DEBUG] Opening new ssh session
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [INFO] agent forwarding enabled
==> azure-arm: Connected to SSH!
2020/04/07 06:39:38 packer-builder-azure-arm plugin: Running the provision hook
2020/04/07 06:39:38 [INFO] (telemetry) Starting provisioner shell
==> azure-arm: Provisioning with shell script: /var/folders/6l/3_4z8b2d1jl2hbnppsj_m0mc0000gn/T/packer-shell569763601
2020/04/07 06:39:38 packer-provisioner-shell plugin: Opening /var/folders/6l/3_4z8b2d1jl2hbnppsj_m0mc0000gn/T/packer-shell569763601 for reading
2020/04/07 06:39:38 packer-provisioner-shell plugin: [INFO] 85 bytes written for 'uploadData'
2020/04/07 06:39:38 [INFO] 85 bytes written for 'uploadData'
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] Opening new ssh session
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] Starting remote scp process: scp -vt /tmp
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] Started SCP session, beginning transfers...
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] Copying input data into temporary file so we can read the length
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] scp: Uploading script_1363.sh: perms=C0644 size=85
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] SCP session complete, closing stdin pipe.
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] Waiting for SSH session to complete.
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] scp stderr (length 30): Sink: C0644 85 script_1363.sh
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] Opening new ssh session
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] starting remote command: chmod 0755 /tmp/script_1363.sh
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020/04/07 06:39:38 [INFO] RPC client: Communicator ended with: 0
2020/04/07 06:39:38 [INFO] RPC endpoint: Communicator ended with: 0
2020/04/07 06:39:38 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] Opening new ssh session
2020/04/07 06:39:38 packer-builder-azure-arm plugin: [DEBUG] starting remote command: chmod +x /tmp/script_1363.sh; PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='azure-arm' sudo -E sh '/tmp/script_1363.sh'
azure-arm: WARNING! The waagent service will be stopped.
azure-arm: WARNING! Cached DHCP leases will be deleted.
azure-arm: WARNING! root password will be disabled. You will not be able to login as root.
azure-arm: WARNING! /etc/resolvconf/resolv.conf.d/tail and /etc/resolvconf/resolv.conf.d/original will be deleted.
azure-arm: WARNING! ubuntu account and entire home directory will be deleted.
2020/04/07 06:39:41 packer-builder-azure-arm plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020/04/07 06:39:41 [INFO] 342 bytes written for 'stdout'
2020/04/07 06:39:41 [INFO] 0 bytes written for 'stderr'
2020/04/07 06:39:41 [INFO] RPC client: Communicator ended with: 0
2020/04/07 06:39:41 [INFO] RPC endpoint: Communicator ended with: 0
2020/04/07 06:39:41 packer-provisioner-shell plugin: [INFO] 342 bytes written for 'stdout'
2020/04/07 06:39:41 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stderr'
2020/04/07 06:39:41 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2020/04/07 06:39:41 packer-builder-azure-arm plugin: [DEBUG] Opening new ssh session
2020/04/07 06:39:41 packer-builder-azure-arm plugin: [DEBUG] starting remote command: rm -f /tmp/script_1363.sh
2020/04/07 06:39:41 packer-builder-azure-arm plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020/04/07 06:39:41 [INFO] RPC client: Communicator ended with: 0
2020/04/07 06:39:41 [INFO] RPC endpoint: Communicator ended with: 0
2020/04/07 06:39:41 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2020/04/07 06:39:41 packer-builder-azure-arm plugin: [DEBUG] Opening new ssh session
2020/04/07 06:39:41 packer-builder-azure-arm plugin: [DEBUG] starting remote command: rm -f
2020/04/07 06:39:41 packer-builder-azure-arm plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020/04/07 06:39:41 [INFO] RPC client: Communicator ended with: 0
2020/04/07 06:39:41 [INFO] RPC endpoint: Communicator ended with: 0
2020/04/07 06:39:41 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2020/04/07 06:39:41 [INFO] (telemetry) ending shell
==> azure-arm: Querying the machine's properties ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-y4c1dvqwd3'
==> azure-arm: -> ComputeName : 'pkrvmy4c1dvqwd3'
2020/04/07 06:39:41 packer-builder-azure-arm plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3?api-version=2018-04-01" body=""
2020/04/07 06:39:41 packer-builder-azure-arm plugin: Azure response method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3?api-version=2018-04-01" x-ms-request-id="548c5e3f-8d99-40ad-ac3d-f7b1fcead4db" body="{\r\n \"name\": \"pkrvmy4c1dvqwd3\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"vmId\": \"30fd1b65-7b05-40cf-9fb4-567f391090de\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_A2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04.0-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": \"pkrosy4c1dvqwd3\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/PACKER-RESOURCE-GROUP-Y4C1DVQWD3/providers/Microsoft.Compute/disks/pkrosy4c1dvqwd3\"\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"pkrvmy4c1dvqwd3\",\r\n \"adminUsername\": \"ubuntu\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \"path\": \"/home/ubuntu/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXNcYEcJCNI5RyjliZAmi3oMjoB3r63jyuanmsAgcQWTIpQLGcGVrA3DKIZjPO7uNYz1R6mq3BklgyXqPpDWuk4wr80K79Qh9ly9faRztQQnCxqINLCoeu7fiUz8ApPCrl2wOuUqsNNQ50zN1TXhxgyOPdNidE0Hh5QbDqOpHVeIeLZu4IzOy+4bDzHF4Kq4/Q0br0mnc2gGCvZuAdtl2JNMK+ii39/dEEOj8nREOSa9I7JR0ObAHL5PoBRIGDCVv6ro7vwoP52CIDRPMMckYBtbSsD+aO8WazrMXDpA7RYhzm8S47/odU9l2SuqqE6YQQc5U4GsxFZq5mF+6gXELl packer Azure Deployment2020-04-07T06:37:28-06:00\"\r\n }\r\n ]\r\n }\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\"}]},\r\n \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": false\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" status="200 OK"
2020/04/07 06:39:41 packer-builder-azure-arm plugin: Azure response x-ms-request-id="548c5e3f-8d99-40ad-ac3d-f7b1fcead4db" body="{\r\n \"name\": \"pkrvmy4c1dvqwd3\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"vmId\": \"30fd1b65-7b05-40cf-9fb4-567f391090de\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_A2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04.0-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": \"pkrosy4c1dvqwd3\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/PACKER-RESOURCE-GROUP-Y4C1DVQWD3/providers/Microsoft.Compute/disks/pkrosy4c1dvqwd3\"\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"pkrvmy4c1dvqwd3\",\r\n \"adminUsername\": \"ubuntu\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \"path\": \"/home/ubuntu/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXNcYEcJCNI5RyjliZAmi3oMjoB3r63jyuanmsAgcQWTIpQLGcGVrA3DKIZjPO7uNYz1R6mq3BklgyXqPpDWuk4wr80K79Qh9ly9faRztQQnCxqINLCoeu7fiUz8ApPCrl2wOuUqsNNQ50zN1TXhxgyOPdNidE0Hh5QbDqOpHVeIeLZu4IzOy+4bDzHF4Kq4/Q0br0mnc2gGCvZuAdtl2JNMK+ii39/dEEOj8nREOSa9I7JR0ObAHL5PoBRIGDCVv6ro7vwoP52CIDRPMMckYBtbSsD+aO8WazrMXDpA7RYhzm8S47/odU9l2SuqqE6YQQc5U4GsxFZq5mF+6gXELl packer Azure Deployment2020-04-07T06:37:28-06:00\"\r\n }\r\n ]\r\n }\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\"}]},\r\n \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": false\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3?api-version=2018-04-01"
==> azure-arm: -> Managed OS Disk : '/subscriptions/xxx/resourceGroups/PACKER-RESOURCE-GROUP-Y4C1DVQWD3/providers/Microsoft.Compute/disks/pkrosy4c1dvqwd3'
==> azure-arm: Querying the machine's additional disks properties ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-y4c1dvqwd3'
==> azure-arm: -> ComputeName : 'pkrvmy4c1dvqwd3'
2020/04/07 06:39:41 packer-builder-azure-arm plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3?api-version=2018-04-01" body=""
2020/04/07 06:39:42 packer-builder-azure-arm plugin: Azure response request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3?api-version=2018-04-01" x-ms-request-id="88595789-78d1-4bc0-a59f-e351ac571300" body="{\r\n \"name\": \"pkrvmy4c1dvqwd3\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"vmId\": \"30fd1b65-7b05-40cf-9fb4-567f391090de\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_A2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04.0-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": \"pkrosy4c1dvqwd3\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/PACKER-RESOURCE-GROUP-Y4C1DVQWD3/providers/Microsoft.Compute/disks/pkrosy4c1dvqwd3\"\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"pkrvmy4c1dvqwd3\",\r\n \"adminUsername\": \"ubuntu\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \"path\": \"/home/ubuntu/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXNcYEcJCNI5RyjliZAmi3oMjoB3r63jyuanmsAgcQWTIpQLGcGVrA3DKIZjPO7uNYz1R6mq3BklgyXqPpDWuk4wr80K79Qh9ly9faRztQQnCxqINLCoeu7fiUz8ApPCrl2wOuUqsNNQ50zN1TXhxgyOPdNidE0Hh5QbDqOpHVeIeLZu4IzOy+4bDzHF4Kq4/Q0br0mnc2gGCvZuAdtl2JNMK+ii39/dEEOj8nREOSa9I7JR0ObAHL5PoBRIGDCVv6ro7vwoP52CIDRPMMckYBtbSsD+aO8WazrMXDpA7RYhzm8S47/odU9l2SuqqE6YQQc5U4GsxFZq5mF+6gXELl packer Azure Deployment2020-04-07T06:37:28-06:00\"\r\n }\r\n ]\r\n }\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\"}]},\r\n \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": false\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" status="200 OK" method="GET"
2020/04/07 06:39:42 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3?api-version=2018-04-01" x-ms-request-id="88595789-78d1-4bc0-a59f-e351ac571300" body="{\r\n \"name\": \"pkrvmy4c1dvqwd3\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3\",\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"vmId\": \"30fd1b65-7b05-40cf-9fb4-567f391090de\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_A2_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04.0-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": \"pkrosy4c1dvqwd3\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/xxx/resourceGroups/PACKER-RESOURCE-GROUP-Y4C1DVQWD3/providers/Microsoft.Compute/disks/pkrosy4c1dvqwd3\"\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"pkrvmy4c1dvqwd3\",\r\n \"adminUsername\": \"ubuntu\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \"path\": \"/home/ubuntu/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXNcYEcJCNI5RyjliZAmi3oMjoB3r63jyuanmsAgcQWTIpQLGcGVrA3DKIZjPO7uNYz1R6mq3BklgyXqPpDWuk4wr80K79Qh9ly9faRztQQnCxqINLCoeu7fiUz8ApPCrl2wOuUqsNNQ50zN1TXhxgyOPdNidE0Hh5QbDqOpHVeIeLZu4IzOy+4bDzHF4Kq4/Q0br0mnc2gGCvZuAdtl2JNMK+ii39/dEEOj8nREOSa9I7JR0ObAHL5PoBRIGDCVv6ro7vwoP52CIDRPMMckYBtbSsD+aO8WazrMXDpA7RYhzm8S47/odU9l2SuqqE6YQQc5U4GsxFZq5mF+6gXELl packer Azure Deployment2020-04-07T06:37:28-06:00\"\r\n }\r\n ]\r\n }\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Network/networkInterfaces/pkrniy4c1dvqwd3\"}]},\r\n \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": false\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}"
==> azure-arm: Powering off machine ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-y4c1dvqwd3'
==> azure-arm: -> ComputeName : 'pkrvmy4c1dvqwd3'
2020/04/07 06:39:42 packer-builder-azure-arm plugin: Azure request method="POST" request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3/deallocate?api-version=2018-04-01" body=""
2020/04/07 06:39:42 packer-builder-azure-arm plugin: Azure response status="202 Accepted" method="POST" request="https://management.azure.com/subscriptions/xxx/resourceGroups/packer-Resource-Group-y4c1dvqwd3/providers/Microsoft.Compute/virtualMachines/pkrvmy4c1dvqwd3/deallocate?api-version=2018-04-01" x-ms-request-id="daca9e36-4dc8-4b6c-b997-ec5e96f540db" body=""
2020/04/07 06:39:42 packer-builder-azure-arm plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/westus2/operations/daca9e36-4dc8-4b6c-b997-ec5e96f540db?api-version=2018-04-01" body=""
2020/04/07 06:39:42 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/westus2/operations/daca9e36-4dc8-4b6c-b997-ec5e96f540db?api-version=2018-04-01" x-ms-request-id="7ecbd07f-ff79-4a40-acef-0de639cf4d25" body="{\r\n \"startTime\": \"2020-04-07T12:39:42.284609+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"daca9e36-4dc8-4b6c-b997-ec5e96f540db\"\r\n}"
2020/04/07 06:40:18 packer-builder-azure-arm plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/westus2/operations/daca9e36-4dc8-4b6c-b997-ec5e96f540db?api-version=2018-04-01" body=""
2020/04/07 06:40:18 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/westus2/operations/daca9e36-4dc8-4b6c-b997-ec5e96f540db?api-version=2018-04-01" x-ms-request-id="6f66fca2-9300-4303-b9d4-772bbd9e36c6" body="{\r\n \"startTime\": \"2020-04-07T12:39:42.284609+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"daca9e36-4dc8-4b6c-b997-ec5e96f540db\"\r\n}"
2020/04/07 06:41:18 packer-builder-azure-arm plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/westus2/operations/daca9e36-4dc8-4b6c-b997-ec5e96f540db?api-version=2018-04-01" body=""
2020/04/07 06:41:18 packer-builder-azure-arm plugin: Azure response x-ms-request-id="dc54d069-f49b-470d-bd08-ca547e1ecd1c" body="{\r\n \"startTime\": \"2020-04-07T12:39:42.284609+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"daca9e36-4dc8-4b6c-b997-ec5e96f540db\"\r\n}" status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/westus2/operations/daca9e36-4dc8-4b6c-b997-ec5e96f540db?api-version=2018-04-01"
2020/04/07 06:42:18 packer-builder-azure-arm plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/westus2/operations/daca9e36-4dc8-4b6c-b997-ec5e96f540db?api-version=2018-04-01" body=""
2020/04/07 06:42:19 packer-builder-azure-arm plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/westus2/operations/daca9e36-4dc8-4b6c-b997-ec5e96f540db?api-version=2018-04-01" x-ms-request-id="1a828dc5-49f6-4f29-98a3-747253b5fa25" body="{\r\n \"startTime\": \"2020-04-07T12:39:42.284609+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"daca9e36-4dc8-4b6c-b997-ec5e96f540db\"\r\n}"
{
"variables": {
"arm_client_id": "{{env `ARM_CLIENT_ID`}}",
"arm_client_secret": "{{env `ARM_CLIENT_SECRET`}}",
"arm_subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}",
"arm_tenant_id": "{{env `ARM_TENANT_ID`}}",
"ansible_deploy_key": "{{env `ANSIBLE_DEPLOY_KEY`}}",
"managed_image_name": "partitionedImage"
},
"builders": [
{
"client_id": "{{user `arm_client_id`}}",
"client_secret": "{{user `arm_client_secret`}}",
"subscription_id": "{{user `arm_subscription_id`}}",
"tenant_id": "{{user `arm_tenant_id`}}",
"location": "West US 2",
"managed_image_name": "{{user `managed_image_name`}}",
"managed_image_resource_group_name": "imageBuilder",
"os_type": "Linux",
"image_sku": "16.04.0-LTS",
"image_offer": "UbuntuServer",
"image_publisher": "Canonical",
"ssh_username": "ubuntu",
"type": "azure-arm",
"vm_size": "Standard_A2_v2"
}
],
"provisioners": [
{
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
"inline": [
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
],
"inline_shebang": "/bin/sh -x",
"type": "shell"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment