尝试在AzureChinaCloud中运行打包程序时出错

问题描述 投票:0回答:1

我正在尝试使用以下命令从packer配置中构建VM映像:


    packer build \
        -var base_img=$base_img \
        -var client_id=$client_id \
        -var client_secret=$client_secret \
        -var tenant_id=$tenant_id \
        -var subscription_id=$subscription_id \
        -var az_cloud_environment_name=China \
        -only=azure-arm \
        packer.json

但是,我收到以下错误,但找不到它的含义和解决方法:Build 'azure-arm' errored: packer-azure application not set up for Azure environment "AzureChinaCloud"

有人见过这样的东西吗?

azure packer azure-china
1个回答
0
投票

仅当您使用“快速启动”设备代码流时,才会发生这种情况-例如,请参见https://github.com/hashicorp/packer/issues/5034

如果您通过自己的clientIdclientSecret,则不会发生。

可能是您没有正确将client_idclient_secret传递给打包程序文件吗?您在那里是如何使用这些值的?

© www.soinside.com 2019 - 2024. All rights reserved.