【问题标题】:Display error in UI of azure while entering parameter for ARM template为 ARM 模板输入参数时在 azure 的 UI 中显示错误
【发布时间】:2020-07-16 17:12:13
【问题描述】:

我想在部署 ARM 模板时显示一个动态错误,当输入错误的存储帐户名称(不遵循 Azure 命名约定)时显示该错误。现在我将用户的输入作为参数,但没有显示错误消息。有没有办法实现这一点。 Azure 在我们创建存储帐户时具有如下图所示的此功能,但我不知道如何使用 ARM 模板实现此功能。

Azure error when wrong storageaccount name is entered

【问题讨论】:

  • 花点时间阅读文档的How to ask 部分。发布一个最低限度的、可重复的示例,说明您迄今为止所做的尝试,以增加社区与您的帖子互动的机会。

标签: azure cloud arm-template azure-cloud-services


【解决方案1】:

恐怕这个功能目前在 ARM 模板中不可用。

请查看这些反馈:

  1. ARM template parameter validation

  2. Resource Group Template parameter validation

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-18
    • 2020-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多