在使用azure-cli的指令az的時候,七月初cloud shell將az自動更新到2.50.0版後下指令 az network dns zone list --resource-group YOUR_RESOURCE_GROUP 會出現錯誤訊息:
(InvalidResourceType) The resource type 'dnszones' could not be found in the namespace 'Microsoft.Network' for api version '2023-07-01-preview'. The supported api-versions are '2015-05-04-preview,2016-04-01,2017-09-01,2017-09-15-preview,2017-10-01,2018-03-01-preview,2018-05-01'.
Code: InvalidResourceType
Message: The resource type 'dnszones' could not be found in the namespace 'Microsoft.Network' for api version '2023-07-01-preview'. The supported api-versions are '2015-05-04-preview,2016-04-01,2017-09-01,2017-09-15-preview,2017-10-01,2018-03-01-preview,2018-05-01'.
據說下一個版本2.51.0會在2023/8/1發布。在這之前的只能用下面指令手動安裝舊版