-
-
Save ampc/28f6d91a9409fb1d2808f5f7ea7ff654 to your computer and use it in GitHub Desktop.
packer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"tag": "", | |
"base_img": "", | |
"client_id": "", | |
"tenant_id": "", | |
"client_secret": "", | |
"subscription_id": "", | |
"compose_version": "", | |
"build_resource_group_name": "", | |
"resource_group_name": "", | |
"virtual_network_name": "", | |
"virtual_network_subnet_name": "", | |
"virtual_network_resource_group_name": "", | |
"gallery_name": "", | |
"elk_addr": "" | |
}, | |
"builders": [ | |
{ | |
"type": "azure-arm", | |
"tenant_id": "{{user `tenant_id`}}", | |
"client_id": "{{user `client_id`}}", | |
"client_secret": "{{user `client_secret`}}", | |
"subscription_id": "{{user `subscription_id`}}", | |
"shared_image_gallery": { | |
"subscription": "{{user `subscription_id`}}", | |
"resource_group": "{{user `resource_group_name`}}", | |
"gallery_name": "{{user `gallery_name`}}", | |
"image_name": "{{user `base_img`}}", | |
"image_version": "{{user `nomad_client_image_version`}}" | |
}, | |
"os_type": "Linux", | |
"vm_size": "Standard_A4_v2", | |
"os_disk_size_gb": "32", | |
"virtual_network_name": "{{user `virtual_network_name`}}", | |
"virtual_network_subnet_name": "{{user `virtual_network_subnet_name`}}", | |
"virtual_network_resource_group_name": "{{user `virtual_network_resource_group_name`}}", | |
"build_resource_group_name": "{{user `build_resource_group_name`}}", | |
"shared_image_gallery_destination": { | |
"resource_group": "{{user `resource_group_name`}}", | |
"gallery_name": "{{user `gallery_name`}}", | |
"image_name": "nomad-client-disk", | |
"image_version": "{{user `nomad_client_disk_image_version`}}", | |
"replication_regions": "westeurope" | |
}, | |
"managed_image_name": "{{user `tag`}}", | |
"managed_image_resource_group_name": "{{user `resource_group_name`}}", | |
"async_resourcegroup_delete": true, | |
"disk_additional_size": [ | |
32 | |
], | |
"managed_image_storage_account_type": "Standard_LRS" | |
} | |
], | |
"provisioners": [ | |
{ | |
"environment_vars": [ | |
"compose_version={{ user `compose_version` }}", | |
"VAULT_ADDR={{ user `vault_addr` }}", | |
"VAULT_TOKEN={{ user `vault_token` }}" | |
], | |
"execute_command": "{{.Vars}} sudo -E -S bash '{{.Path}}'", | |
"scripts": [ | |
"../_common/ubuntu-startup.sh", | |
"../_common/ubuntu-cleanup.sh" | |
], | |
"type": "shell" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020-03-20T12:51:23Z: ==> azure-arm: Running builder ... | |
2020-03-20T12:51:23Z: ==> azure-arm: Getting tokens using client secret | |
2020-03-20T12:51:23Z: ==> azure-arm: Getting tokens using client secret | |
2020-03-20T12:51:23Z: azure-arm: Creating Azure Resource Manager (ARM) client ... | |
2020-03-20T12:51:23Z: ==> azure-arm: Using existing resource group ... | |
... | |
2020-03-20T12:52:25Z: ==> azure-arm: ERROR: -> DeploymentFailed : At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details. | |
==> azure-arm: ERROR: -> Conflict | |
==> azure-arm: ERROR: -> OperationNotAllowed : Addition of a blob based disk to VM with managed disks is not supported. | |
==> azure-arm: | |
2020-03-20T12:52:25Z: ==> azure-arm: Code="DeploymentFailed" Message="At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details." Details=[{"code":"Conflict","message":"{\r\n \"error\": {\r\n \"code\": \"OperationNotAllowed\",\r\n \"message\": \"Addition of a blob based disk to VM with managed disks is not supported.\",\r\n \"target\": \"dataDisk\"\r\n }\r\n}"}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment