- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我是 Microsoft Azure 的初学者,请耐心等待。我正在关注this关于使用参数部署二头肌模板的教程,我的二头肌文件与教程中的完全相同。但是,当我尝试部署它时,出现以下错误
New-AzResourceGroupDeployment:找不到与参数名称“位置”匹配的参数。
位置参数肯定存在。我使用以下命令进行部署:
New-AzResourceGroupDeployment -ResourceGroupName ResourceGroup -TemplateFile c:\Users\Name\Desktop\files\azure\testing\test.bicep -location 区域 -storagename storageaccountname -storagetype Standard_LRS -WhatIf
如有任何帮助,我们将不胜感激!
最佳答案
教程似乎包含错误。在 official documentation ,New-AzResourceGroupDeployment
cmdlet 中没有 location
参数。
此外,您已经指定了一个资源组,并且您用 bicep 描述的资源包含一个位置。所以位置参数在这里没有意义 - 只需将其省略即可!
请注意,您还可以使用 Azure CLI 部署二头肌文件。请参阅Deploy local Bicep file
关于azure - 微软Azure : 'New-AzResourceGroupDeployment : A parameter cannot be found that matches parameter name ' location',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73202126/
我有一个二头肌模板,其参数类型为“数组”。我试图给它的数组是一个对象数组。这是一个示例 Bicep,我在其中获取一个数组并以各种方式输出其中的一部分。 param rulesFromJson arra
我有一个二头肌模板,其参数类型为“数组”。我试图给它的数组是一个对象数组。这是一个示例 Bicep,我在其中获取一个数组并以各种方式输出其中的一部分。 param rulesFromJson arra
我想在 PowerShell 中围绕 New-AzResourceGroupDeployment 编写一个包装器。因此,让我们假设以下脚本: New-AzResourceGroupDeployment
虽然我知道答案,但我只是想我会把这个问题留给遇到此错误消息的其他人。我的搜索结果中似乎没有任何结果。 使用此命令运行 Azure 资源管理器模板时: New-AzResourceGroupDeploy
我需要在 PowerShell 中运行以下命令: New-AzResourceGroupDeployment -Name Myrg1010 -ResourceGroupName ADF
我正在尝试按照此处提供的说明创建 Application Insights 资源:https://learn.microsoft.com/en-us/azure/azure-monitor/app/p
我正在尝试按照此处提供的说明创建 Application Insights 资源:https://learn.microsoft.com/en-us/azure/azure-monitor/app/p
我是 Microsoft Azure 的初学者,请耐心等待。我正在关注this关于使用参数部署二头肌模板的教程,我的二头肌文件与教程中的完全相同。但是,当我尝试部署它时,出现以下错误 New-AzRe
我是 Microsoft Azure 的初学者,请耐心等待。我正在关注this关于使用参数部署二头肌模板的教程,我的二头肌文件与教程中的完全相同。但是,当我尝试部署它时,出现以下错误 New-AzRe
我有一个发布设置,正在尝试通过 Azure DevOps 发布管道进行发布。这是基于我克隆的另一个版本并且运行良好。 问题是模板未通过验证检查并且无法进一步进行。奇怪的是我能够使用 new-AzRes
我是一名优秀的程序员,十分优秀!