Below is the command we are using to get the function app.
az functionapp show `
--name $($FunctionAppName) `
--resource-group $($ResourceGroup) `
--subscription $($SubscriptionId)
it fails with following error with new CLI version
ERROR: The command failed with an unexpected error. Here is the traceback:
2023-05-22T12:15:37.3679569Z ERROR: HTTPSConnectionPool(host='management.chinacloudapi.cnsubscriptions', port=443): Max retries exceeded with url: /e98eacf8-6841-4b91-95b9-0917297053fa/resourceGroups/lz-rg-ecn-b-questionnaire/providers/Microsoft.Web/sites/lzfnap-ecn-b-bridge?api-version=2022-03-01 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x067EF598>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
2023-05-22T12:15:37.3684738Z Traceback (most recent call last):
2023-05-22T12:15:37.3685252Z File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 174, in _new_conn
2023-05-22T12:15:37.3685678Z File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/connection.py", line 73, in create_connection
2023-05-22T12:15:37.3686011Z File "socket.py", line 955, in getaddrinfo
2023-05-22T12:15:37.3686294Z socket.gaierror: [Errno 11001] getaddrinfo failed
and it works as expected in older versions.