HTTPSConnectionPool(host='management.azure.com', port=443): url 超出了最大重試次數

HTTPSConnectionPool(host='management.azure.com', port=443): url 超出了最大重試次數

我正在嘗試從 azure shell(portal.azure.com 瀏覽器)建立一個主要帳戶,但似乎無法通過:

stan@Azure:~$ az ad sp create-for-rbac --sdk-auth > my.azureauth
Role assignment creation failed.

Error occurred in request., RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/**********/providers/Microsoft.Authorization/roleAssignments/d5786742-5a32-486f-a669-31807195e5fc?api-version=2018-01-01-preview (Caused by ResponseError('too many 504 error responses',))
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/requests/adapters.py", line 445, in send
    timeout=timeout
  File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 731, in urlopen
    body_pos=body_pos, **response_kw)
  File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 731, in urlopen
    body_pos=body_pos, **response_kw)
  File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 731, in urlopen
    body_pos=body_pos, **response_kw)
  File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 711, in urlopen
    retries = retries.increment(method, url, response=response, _pool=self)
  File "/opt/az/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/4******/providers/Microsoft.Authorization/roleAssignments/d5786742-5a32-486f-a669-31807195e5fc?api-version=2018-01-01-preview (Caused by ResponseError('too many 504 error responses',))

看來根本原因是:

too many 504 error responses

但昨天同樣的命令有效,而且是照書本規定的,請指教。

提前謝謝你,斯坦

相關內容