Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[FEATURE] [SQL database] Add properties.backupRetentionDays setter for SQLDatabase items

Đang mở
#147 3 bình luận 0 reaction 1 người được giao Xem trên GitHub

@HasanAboShally đang làm issue này rồi.

Từ ngày 2/2/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

blocked enhancement
Use Case / Problem

Fabric CLI can read (get) SQL database properties, but cannot update backup retention via CLI. Teams managing multiple environments (dev/test/prod) need to standardize and automate retention settings (e.g., 7/14/21/35 days) without manual portal steps.

Proposed Solution

Add support for setting properties.backupRetentionDays on *.SQLDatabase items using the existing set command pattern (property path via -q, input via -i).

Sample command:

  • set <DBname>.SQLDatabase -q "properties.backupRetentionDays" -i 21

Expected behavior:

  • Validate input is an integer and within the service-allowed range (fail with a clear error if not).
  • Confirm the updated value in the command output (or return the updated resource payload).
Alternatives Considered
  • Manually updating retention in the Fabric UI (not automatable and leads to configuration drift).
Impact Assessment
  • This aligns with Microsoft Fabric roadmap items
Implementation Attestation
  • I understand this feature should maintain backward compatibility with existing commands
  • I confirm this feature request does not introduce performance regressions for existing workflows
  • I acknowledge that new features must follow fabric-cli's established patterns and conventions
Implementation Notes

This should mirror existing property updates already supported by set for other item types.

Ngôn ngữ chính
Python
Star
173
Fork
63
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/fabric-cli

Tất cả issue của microsoft/fabric-cli

Issue tương tự

Thêm issue về Python

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.