Azure SQL市场部署的密码要求

时间:2018-10-17 00:16:23

标签: azure azure-marketplace

在将ARM模板/参数/ createUiDefinition文件部署到市场后,刀片服务器配置可以运行,但是摘要指示“ Validation Failed”(验证失败),并在Azure SQL密码字段中抛出了代码InvalidTemplate。在密码中添加Regex约束也无法解决此错误。通过门户网站的Powershell /模板资源可以完美地进行部署。

用于部署到市场的Azure SQL密码的正确定义是什么?

编辑: 在 createUiDefinition.json 中将密码定义为:

{
"name": "administratorLoginPassword",
"type": "Microsoft.Compute.CredentialsCombo",
"label": {
    "password": "Password",
    "confirmPassword": "Confirm password"
    },
"toolTip": {
    "password": ""
    },
"constraints": {
    "required": true,
    "customPasswordRegex": "^(?=.*[a-z])(?=.*[A-Z])(?=.*[\\d])(?=.*[@#$%^&£*\\-_+=[\\]{}|\\\\:',?\\/`~\"\"();!])[a-zA-z\\d@#$%^&£*\\-_+=[\\]{}|\\\\:',?\\/`~\"\"();!]{8,}$",
"customValidationMessage": "The password must contain at least 12 characters, with at least 1 letter and 1 number."
    },
"options": {
    "hideConfirmation": false
    },
"osPlatform": "Windows",
"visible": true
}

MainTemplate.json 中将密码定义为:

"administratorLoginPassword": {
  "type": "securestring",
  "metadata": {
    "description": "The administrator login password for the Essentials Database."
  }
}

0 个答案:

没有答案