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

Deploy sp referencing app reg within module errors out

Đang mở
#311 3 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
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
azure
Lĩnh vực
cloud, infrastructure

Hướng nghiên cứu

Tái hiện lỗi với deploy.bicep và app-registration.bicep bằng cách sử dụng các tài nguyên applications và servicePrincipals của Microsoft.Graph. Bắt đầu bằng cách truy vết cách appId của tài nguyên application được hiển thị và phân giải qua ranh giới module. Hoàn tất khi quá trình triển khai dựa trên module thành công và service principal nhận được appId của ứng dụng.

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

Mô tả

bug

Bicep version
N/a, using AzureResourceManagerTemplateDeployment@3 in Azure DevOps Server 25H2 (on-premise)

Resource and API version
Microsoft.Graph/[email protected] combined with Microsoft.Graph/[email protected]

Auth flow
Automated. Service connection authenticates with/via app registration using a certificate towards Azure.

Deployment details
Correlation id: e48512ff-cb2c-4d2b-8fe8-5bd8f673b61f
Start time: 18-8-2026, 14:48:50

Describe the bug
When deploying, both defined in a seperate file/module, an app registration and service principal referencing the app registration's appId, it fails with: The language expression property 'appId' doesn't exist, available properties are 'displayName, uniqueName, identifierUris, api, appRoles, owners'.
When they are defined in a directly deployed bicep, all goes well.

To Reproduce
deploy.bicep:

// Left params out since not relevant.
module appRegistration './app-registration.bicep' = {
  name: 'appRegistrationDeployment-${depName}'
  params: {
    name: appRegistrationName
  }
}

app-registration.bicep:

// Left params out since not relevant.
resource appRegistration 'Microsoft.Graph/[email protected]' = {
  displayName: name
  uniqueName: name
}

resource servicePrincipal 'Microsoft.Graph/[email protected]' = {
  appId: appRegistration.appId
}

Additional context
It seems like it has something to do with it being in a module. Using another name for the resource does not help either, tried that to be sure it was not related to that.

Ngôn ngữ chính
TypeScript
Star
80
Fork
15
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
7

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 microsoftgraph/msgraph-bicep-types

Tất cả issue của microsoftgraph/msgraph-bicep-types

Issue tương tự

Thêm issue về TypeScript

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.