在使用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發布。在這之前的只能用下面指令手動安裝舊版
- python3 -m pip install --upgrade --force azure-cli==2.49.0
- echo "alias az='~/.local/bin/az'" >> ~/.bashrc
- source ~/.bashrc
若是在Debian或Ubuntu上面,則是用下面的方式手動安裝2.49.0版的az:
- sudo apt purge -y azure-cli
- sudo apt install -y python3-pip
- sudo python3 -m pip install --upgrade --force azure-cli==2.49.0
這樣安裝的az會放在/usr/local/bin/az,可以用which -a az看系統裝在哪邊
_EOF_
Dark sci-fi, a small radar on mountain ,sunset, concept art, high detail, warm lighting, volumetric godrays, vivid beautiful
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 793535087, Size: 536x268, Model hash: 95afa0d9ea, Model: chilloutmix_NiPrunedFp32, Version: v1.6.0-2-g4afaaf8a
Time taken: 7.0 sec. on M2 Mac
沒有留言:
張貼留言