Change timeout for Azure builder

21 views
Skip to first unread message

Prashanth Venugopal

unread,
Jul 12, 2019, 7:34:11 PM7/12/19
to Packer
I am trying to use azure builder with shared gallery replication (packer version 1.4.2). The builder seems to timeout if I put in too many replication regions. Looks like 15 mins is the default value.

The config below seems to work, but when I add a few more region, the builder fails with the error below. Is there a way I could pass in a user-defined timeout for the azure builder ? 


Error -:

2019/07/12 22:39:23 ui error: ==> azure: Future#WaitForCompletion: context has been cancelled: StatusCode=200 -- Original Error: context deadline exceede




Config -:

        {

            "name":"azure",

            "client_id": "{{user `az_client_id`}}",

            "client_secret": "{{user `az_client_secret`}}",

            "subscription_id": "{{user `az_subscription_id`}}",

            "image_offer": "UbuntuServer",

            "image_publisher": "Canonical",

            "image_sku": "18.04-LTS",

            "image_version": "18.04.201810030",

            "location": "West US 2",

            "os_type": "Linux",

            "type": "azure-arm",

            "vm_size": "Standard_F16s_v2",

            "shared_image_gallery_destination": {

                "resource_group": "{{user `az_shrd_resource_group`}}",

                "gallery_name": "{{user `az_shrd_gallery_name`}}",

                "image_name": "{{user `az_shrd_gallery_img_dfn`}}",

                "image_version": "0.0.{{user `build_number`}}",

                "replication_regions": ["japaneast","japanwest"]

           },

            "managed_image_name": "test-cbn-base-image-{{user `build_number`}}",

            "managed_image_resource_group_name": "{{user `az_resource_group`}}",

            "temp_compute_name" : "{{user `cbn_image_name`}}",

            "temp_resource_group_name" : "{{user `temp_az_resource_group`}}",

            "os_disk_size_gb" : 64

        },


Ewen Simon

unread,
Nov 25, 2019, 5:36:02 AM11/25/19
to Packer
Hi, I'm having the same issue but I'm not finding anything on this subject, do you have by any chance found a solution to increase the default value of the timeout?
Reply all
Reply to author
Forward
0 new messages