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

[QUESTION] Command fab import - import: [FeatureNotAvailable] Access is forbidden. You do not have permission to access this resource

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, python
Lĩnh vực
api, authorization, cli

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lệnh fab import đã được báo cáo với fabric-cli 1.7.0, đồng thời so sánh việc tạo với việc sửa đổi một item hiện có. Xem xét các yêu cầu về quyền của service-principal và workspace đối với việc tạo Fabric item, sau đó xác định liệu hành vi này có được mong đợi hay là một lỗi của CLI. Công việc được coi là hoàn tất khi xác định được quyền còn thiếu hoặc ghi lại hạn chế đã được xác nhận.

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

Mô tả

ai:question-triage:unable-to-process question
Question

Hi,

What permissions are required for the service principal to use the fab import command to create and modify items, please?

Thanks

Context

Hi,
Using the following fab import command:
fab import "WF_SB_FS_DEV.Workspace/VL_Global.VariableLibrary" -i "$TMP_DIR/VL_Global.VariableLibrary" -f

I encounter the following error:
x import: [FeatureNotAvailable] Access is forbidden. You do not have permission to access this resource

I am experiencing the same issue with other item types (Notebook).
I do not understand why, but I get this error when creating a new item. However, when modifying an item that already exists in the target workspace, the fab import command successfully applies the changes.

I am using a service principal that is an Admin on the target workspace. In the Tenant Settings, the SPN is allowed for the following options:

  • Users can create Fabric items
  • Service principals can call Fabric public APIs
  • Service principals can access read-only admin APIs
  • Service principals can access admin APIs used for updates
  • And in the API permissions, it has Item.ReadWrite.All.

Could you please tell me what is missing from the service principal to allow it to modify items?

Thanks

fabric-cli version (if relevant)

1.7.0

Operating System (if relevant)

Linux

CLI Mode (if relevant)

Command line mode

Have you checked the documentation?
  • I have searched existing GitHub issues
  • I have reviewed the fabric-cli documentation
Additional Information

No response

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.