在 azure cli 命令执行中出现格式错误的字符串错误 [英] Getting malformed string error in azure cli command execution
问题描述
我正在尝试通过 Azure CLI 使用 ARM 模板创建 Azure Databricks 服务.
当我运行以下命令时,出现以下错误,
要执行的命令:-
az group deployment create --name adb --resource-group palmresourcegroup3 --template-file template.json --parameters parameters.json
错误:-
格式错误的字符串
参考
如果您的订阅未注册,请点击此处提交注册请求.>
更新:
这是一个版本问题,当 OP 将 CLI 更新到 2.0.22
时.问题解决了.
I am trying to create Azure Databricks service using ARM template via Azure CLI.
When I ran the below command, I am getting below error,
Command to execute:-
az group deployment create --name adb --resource-group palmresourcegroup3 --template-file template.json --parameters parameters.json
Error:-
malformed string
Refer parameters.json
Refer template.json
If I update your storage account, your template works for me.
"storageAccountName": {
"defaultValue": "[concat('dbstorage', uniqueString(parameters('applianceName'), resourceGroup().id, subscription().id))]",
"type": "string"
},
You could check the full template file.
Note: Azure Databricks is in preview currently. Please ensure your subscription is enrolled in the preview. You could check on Portal.
If you subscription is not enrolled, click here to submit a request to enroll your subscription.
Update:
It is a version issue, when OP update CLI to 2.0.22
. The issue is solved.
这篇关于在 azure cli 命令执行中出现格式错误的字符串错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!