Azure / Azure/AzureCacheForRedis

ARM update fails with 2023-08-01 when setting updateChannel property

Đang mở
#13 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PowerShell
Star
12
Fork
17
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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'
}
}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lần triển khai thứ hai từ mẫu Bicep của issue bằng cách sử dụng phiên bản API 2023-08-01 của Microsoft.Cache/redis và thuộc tính updateChannel. So sánh hành vi khi bỏ thuộc tính đó và với các phiên bản API cũ hơn; được xem là hoàn tất khi việc triển khai tài nguyên hiện có không còn trả về lỗi NotModified nhưng vẫn giữ lại kênh cập nhật dự kiến.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
azure, redis
Lĩnh vực
cloud, databases
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.