如何通过ARM更新Azure Service Bus的队列/主题?

时间:2019-03-28 07:19:41

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

我有一个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在队列/主题上执行更新操作?

1 个答案:

答案 0 :(得分:1)

我们确实使用手臂模板配置了队列\主题,但是根据错误-一些参数是不可变的,因此在这种情况下,您必须重新创建。