【问题标题】:How to update queue/topic of Azure Service Bus via ARM?如何通过 ARM 更新 Azure 服务总线的队列/主题?
【发布时间】:2019-03-28 15:26:15
【问题描述】:

我有一个 ARM(Azure 资源管理器)脚本,用于创建包含主题和订阅者的服务总线。它工作了一段时间,但我决定启用主题会话并禁用分区。脚本已更改,在部署期间它给了我:

Template deployment returned the following errors:
07:56:00 - Resource Microsoft.ServiceBus/namespaces/topics 'ops-ServiceBus/default-topic' failed with message '{
  "error": {
    "message": "SubCode=40000. Partitioning cannot be changed for Topic. . TrackingId:<some_guid>_M11CH3_M11CH3_G1, SystemTracker:ops-servicebus.servicebus.windows.net:default-topic, Timestamp:2019-03-28T04:55:56 CorrelationId: <some_guid>",
    "code": "BadRequest"
  }
}'
07:56:21 - Template output evaluation skipped: at least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.

是否可以使用 ARM 对 Queue/Topic 执行更新操作?

【问题讨论】:

    标签: azure azure-devops azure-resource-manager


    【解决方案1】:

    我们确实使用 arm 模板配置了 queues\topics,但根据错误 - 某些参数是不可变的,因此在这种情况下您必须重新创建。

    【讨论】:

    • 没错。但是话题呢?里面的所有数据都会丢失。什么是正确的程序?
    • 第二件事 - 我如何重新创建主题?我正在使用New-AzureRmResourceGroupDeploymentIncremental模式
    • 您必须手动或使用脚本将其删除。部署模式与此无关。在删除数据之前,您无法对其中的数据进行任何操作、备份或处理。
    猜你喜欢
    • 1970-01-01
    • 2022-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-08
    • 1970-01-01
    • 2017-02-25
    • 1970-01-01
    相关资源
    最近更新 更多