Deploy sp referencing app reg within module errors out
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ả
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoftgraph/msgraph-bicep-types
-
enhancement new type
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoftgraph/msgraph-bicep-types#304 · 3 bình luận · 1 reaction ·
-
enhancement new type
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
microsoftgraph/msgraph-bicep-types#296 · 2 reaction ·
-
Issue with servicePrincipals and appRoleAssignedTo in some Entra TenantsCó thể làm lại được @eketo-msft đã nhận 258 ngày trước và không có pull request nào đang mở. Đang mởbug
microsoftgraph/msgraph-bicep-types#275 · 5 bình luận · 1 người được giao ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoftgraph/msgraph-bicep-types#266 · 1 reaction ·
Tất cả issue của microsoftgraph/msgraph-bicep-types
Issue tương tự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
StabilityNexus/Fate-EVM-Frontend#153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
code-yeongyu/oh-my-openagent#9039 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Tencent/teamai-cli#862 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue hacktoberfest redis
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
libredb/libredb-studio#1164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
flake
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
coder/xum#4920 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày