Azure / Azure/AzureCacheForRedis
ARM update fails with 2023-08-01 when setting updateChannel property
- 主要言語
- PowerShell
- スター
- 12
- フォーク
- 17
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Deploying Azure Cache for Redis instance with bicep template below.
The initial deployment works as expected without any issues.
Running deployment again when resource already exists results with error:
> "The unknown resource response code 'NotModified' is encountered."
Removing the line `updateChannel: 'Stable'` fixes the problem. `Stable` is the default either way.
The problem only affects version `2023-08-01` (older versions don't have this property).
```bicep
resource redis 'Microsoft.Cache/redis@2023-08-01' = {
name: 'redis-${uniqueString(resourceGroup().id)}'
location: resourceGroup().location
properties: {
sku: {
name: 'Basic'
family: 'C'
capacity: 0
}
redisConfiguration: {
'maxmemory-reserved': '30'
'maxfragmentationmemory-reserved': '30'
'maxmemory-delta': '30'
}
enableNonSslPort: false
redisVersion: '6.0'
publicNetworkAccess: 'Disabled'
minimumTlsVersion: '1.2'
updateChannel: 'Stable'
}
}
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、Microsoft.Cache/redis の API バージョン 2023-08-01 と updateChannel プロパティを使用して、issue の Bicep テンプレートから 2 回目のデプロイを再現します。そのプロパティを削除した場合、および古い API バージョンを使用した場合の動作と比較します。既存のリソースのデプロイで NotModified エラーが返されなくなり、意図した更新チャネルが維持されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, redis
- 領域
- cloud, databases
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100