powershell - 使用 powershell 将值传递到 ARM 模板参数

标签 powershell azure azureservicebus azure-powershell azure-rm-template

我有一个 powershell 脚本,它部署以下内容

  • ServiceBus命名空间
  • ServiceBusQueueName
  • 存储帐户等..

现在我也有一个模板文件和模板参数文件,它希望手动输入这些值。我想通过自动将上面部署组件的输入值附加到parameters.json 文件来自动执行此操作。

谢谢

最佳答案

您可以使用参数名称来传递值,如下所示:

new-azurermresourcegroupdeployment -param1 $value -templateparameter $path

param1 将胜过参数文件中的值。为此,您需要最新的 Azure Powershell。

关于powershell - 使用 powershell 将值传递到 ARM 模板参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48420775/

相关文章:

c# - 如何访问 Azure Function 隔离进程中服务总线消息的 ApplicationProperties?

c# - 从 Azure 函数将批量消息发送到服务总线主题

Powershell获取文件的元数据

powershell - 从两个文件中删除相似的行

powershell - 检查远程计算机中的 WinRM 服务

Azure 逻辑应用 - 获取 Blob 内容 - 设置内容类型

powershell - 连接-AzureRmAccount : accessing_ws_metadata_exchange_failed

azure - 如何使用 az storage fs 目录下载 Azure 存储中目录的内容?

javascript - 拒绝获取不安全 header "ETag"

azure - 在 azure 函数中处理消息后,是否需要从服务总线队列中删除消息?