我正在尝试从 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
但是昨天同样的命令有效,并且符合规定,请指教。
提前谢谢你,斯坦