azure - 如何通过 ARM 更新 Azure 服务总线的队列/主题?
问题描述
我有一个 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 对队列/主题执行更新操作?
解决方案
我们确实使用 arm 模板配置了 queues\topics,但根据错误 - 某些参数是不可变的,因此在这种情况下您必须重新创建。
推荐阅读
- php - Laravel 查询格式 - 加入最新行
- c# - 如何编写自己的逻辑来使用 Unity 初始化属性?
- flutter - 我正在颤振中构建一个发布apk,但最后它向我显示了这个错误
- android - Android:recyclerview中的viewitems大纲与recyclerview边框重叠
- php - 结帐页面后如何将用户重定向回 index.php?
- php - 基于星期几和时间范围的条件
- google-chrome - 如果已经在另一台设备上的谷歌浏览器上收到了网络推送通知,有没有办法在一台设备上的谷歌浏览器上停止网络推送通知?
- asp.net-core - 如何在 .net 核心中使用 .(variable_name) 访问类属性?
- android - 改造 - 非空主体上的 onFailure,空主体上的 onResponse
- python - 我可以通过 Datadog REST API 提取 Datadog 指标信息吗?