在Azure CLI命令执行中获取格式错误的字符串错误 [英] Getting malformed string error in azure cli command execution

查看:95
本文介绍了在Azure CLI命令执行中获取格式错误的字符串错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Azure CLI使用ARM模板创建Azure Databricks服务.

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,

要执行的命令:-

az group deployment create --name adb --resource-group palmresourcegroup3 --template-file template.json --parameters parameters.json

错误:-

malformed string

引用 parameters.json

引用 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.

注意:Azure Databricks当前处于预览状态.请确保您的订阅已加入预览.您可以在Portal上查看.

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.

更新:

当OP将CLI更新为2.0.22时,这是一个版本问题.该问题已解决.

It is a version issue, when OP update CLI to 2.0.22. The issue is solved.

这篇关于在Azure CLI命令执行中获取格式错误的字符串错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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