Azure CLI使用SPACES添加Azure标记值 [英] Azure CLI Add Azure Tag Values with SPACES

查看:118
本文介绍了Azure CLI使用SPACES添加Azure标记值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写脚本来更改某些资源标签.

I'm attempting to write a script to change some resource tags.

无论我做什么,我都无法传递带有空格的标记.

No matter what I do, I can not pass a tag with a space in the value.

az组更新-n<资源组> --set tags.key =带有空格的值"

az group update -n <resource group> --set tags.key="value with a space"

仅在命令行上工作,它无法在bash脚本中工作……它仅使用第一个单词,在空格之前.

ONLY works on command line, IT DOESN'T work within a bash script... it only uses the first word, before the space.

推荐答案

Azure CLI 2.0 is Microsoft's cross-platform command line experience for managing Azure resources. You can use it in your browser with Azure Cloud Shell, or install it on macOS, Linux, or Windows and run it from the command line.
I have tried from our end it working as excepted,you may check out how to pass tags with spaces.



-------------------------------------------------- ---------------------------------------------

Let me know if there are still any additional issues I can help with
-----------------------------------------------------------------------------------------------

If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here


这篇关于Azure CLI使用SPACES添加Azure标记值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆