我有一个打包和Azure堆栈的问题,我正在尝试在azure堆栈中构建一个Image,但看起来Packer不会尝试使用我的自定义url。
{ "builders": [{ "type": "azure-arm", "client_id": "client_id", "client_secret": "client_secret", "tenant_id": "tenant_id", "subscription_id": "subscription_id", "managed_image_resource_group_name": "resource_group_name", "managed_image_name": "random_name", "os_type": "Linux", "image_publisher": "Canonical", "image_offer": "UbuntuServer", "image_sku": "18.04-LTS", "azure_tags": { "dept": "Engineering", "task": "Image deployment" "location": "custom_location", "vm_size": "Standard_DS2_v2" "provisioners": [{ "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", "inline": [ "apt-get update", "apt-get upgrade -y", "apt-get -y install nginx", "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync" "inline_shebang": "/bin/sh -x", "type": "shell" }
错误
azure-arm: output will be in this color. ==> azure-arm: Running builder ... ==> azure-arm: Getting tokens using client secret ==> azure-arm: Getting tokens using client secret azure-arm: Creating Azure Resource Manager (ARM) client ...