问题描述
我想通过管道流程创建Azure DevTest实验室VM。但是,当我开始部署时,它在“创建Azure DevTest Lab VM”步骤中失败,并且似乎是由于我的密钥库丢失所致。但是在检查了我的密钥库之后,我的秘密存储在其中了,并且权限应该没有问题。
不确定消息“未为用户设置秘密存储”。就是说,这是否意味着我的帐户和密钥库之间存在关联问题?我该如何验证?谢谢。
Win7entx64.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json","contentVersion": "1.0.0.0","parameters": {
"newVMName": {
"defaultValue": "win7entx64","type": "String"
},"labName": {
"defaultValue": "my_lab","size": {
"defaultValue": "Standard_A3","userName": {
"defaultValue": "trendkj","password": {
"type": "securestring","defaultValue": "[[[VmPassword]]"
}
},"variables": {
"labSubnetName": "[concat(variables('labVirtualNetworkName'),'Subnet')]","labVirtualNetworkId": "[resourceId('Microsoft.DevTestLab/labs/virtualnetworks',parameters('labName'),variables('labVirtualNetworkName'))]","labVirtualNetworkName": "[concat('Dtl',parameters('labName'))]","vmId": "[resourceId ('Microsoft.DevTestLab/labs/virtualmachines',parameters('newVMName'))]","vmName": "[concat(parameters('labName'),'/',parameters('newVMName'))]"
},"resources": [
{
"type": "Microsoft.DevTestLab/labs/virtualmachines","apiVersion": "2018-10-15-preview","name": "[variables('vmName')]","location": "westus","properties": {
"labVirtualNetworkId": "[variables('labVirtualNetworkId')]","notes": "Windows 7 Enterprise","galleryImageReference": {
"offer": "windows-7","publisher": "microsoftwindowsdesktop","sku": "win7-enterprise","osType": "Windows","version": "latest"
},"size": "[parameters('size')]","userName": "[parameters('userName')]","password": "[parameters('password')]","isAuthenticationWithSshKey": false,"labSubnetName": "[variables('labSubnetName')]","disallowPublicIpAddress": true,"storageType": "Standard","allowClaim": false
}
}
],"outputs": {
"labVMId": {
"type": "String","value": "[variables('vmId')]"
}
}
}
我在密钥保管箱中的秘密:
密钥保管箱中的我的访问策略
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)