0

我正在尝试在 Azure 上使用 Cello配置Fabric 网络。我使用服务主体作为身份验证方法。

我在 Azure 中有一个资源组,我在 azure.yml 文件中配置了正确的subscriptionId。但是,我收到一个错误:Azure 错误:SubscriptionNotFound\n消息:找不到订阅“********”。

有没有人遇到过这个错误?如何解决?

日志:

PLAY [Get start timestamp] ******************************************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************************************
ok: [cloud]

TASK [set_fact] *****************************************************************************************************************************************************************************
ok: [cloud]

PLAY [Prepare to run the workload] **********************************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************************************
ok: [cloud]

TASK [include_tasks] ************************************************************************************************************************************************************************
included: /home/cello/cello/src/operator-dashboard/agent/ansible/roles/cloud_azure/prepare/tasks/apply.yml for cloud

TASK [Setup env specific variables] *********************************************************************************************************************************************************
ok: [cloud]

TASK [Retrieve azure specific image details] ************************************************************************************************************************************************
ok: [cloud]

TASK [Print azure image results] ************************************************************************************************************************************************************
ok: [cloud] => {
    "found_images": {
    "ansible_facts": {
        "azure_vmimages": []
    },
    "changed": false,
    "failed": false
    }
}

TASK [Create azure resource group] **********************************************************************************************************************************************************
fatal: [cloud]: FAILED! => {"changed": false, "msg": "Error creating or updating resource group myresourceGroup - Azure Error: SubscriptionNotFound\nMessage: The subscription '********' could not be found."}
    to retry, use: --limit @/home/cello/cello/src/operator-dashboard/agent/ansible/provcluster.retry

PLAY RECAP **********************************************************************************************************************************************************************************
cloud                      : ok=7    changed=0    unreachable=0    failed=1
4

2 回答 2

0

未找到您的订阅 ID。

请参阅microsoft 的此文档以了解如何配置您的服务主体。

于 2018-12-18T02:57:35.200 回答
0

Just found out that there was an issue with Ansible scripts. Please follow this link for more details.

  1. Use Ansible 2.7 if you are using AzureUSGovernment Cloud.
  2. Need to configure cloud_environment as cloud_environment: "AzureUSGovernment" as environment variable

Hope this helps.

于 2018-12-19T04:15:13.273 回答