Rolling back as it seems to cause the following error with this PR.
Have you seen this error before @heintonny?
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: HTTPSConnectionPool(host='management.azure.comv1.0', port=443): Max retries exceeded with url: /directoryRoles (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff79ac8910>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
Enabling role Global Administrator...
Bad Request({"error":{"code":"Request_BadRequest","message":"A conflicting object with one or more of the specified property values is present in the directory.","details":[{"code":"ConflictingObjects","message":"A conflicting object with one or more of the specified property values is present in the directory.","target":"Role_54a07b52-3600-40b7-b421-a016d165c47d"}],"innerError":{"date":"2023-09-29T09:55:30","request-id":"
,"client-request-id":""}}})
Rolling back as it seems to cause the following error with this PR. Have you seen this error before @heintonny?