Task AzureDevTestLabsCreateVM cannot handle key vault reference in the arm template
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- azure, typescript
Hướng nghiên cứu
Bắt đầu từ tasks/Node/src/modules/task-utils/deployutil.ts tại dòng được tham chiếu và tái hiện lỗi bằng JSON tham số ARM có tham chiếu Key Vault. Truy vết cách task đọc các giá trị tham số, sau đó xác minh rằng task chấp nhận dạng tham chiếu được tài liệu hóa mà không gặp lỗi undefined toString.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm trying to call task AzureDevTestLabsCreateVM in my yaml pipeline. I pass in the arm template and parameter file to the task. For sensitive parameters such as SAS token or password, I store them in key vault and reference the key vault in the parameter json file. For demo, I use the example json from https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli :
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminPassword": {
"reference": {
"keyVault": {
"id": "/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults/"
},
"secretName": "ExamplePassword"
}
}
}
}
However, the task give me this following error:
[error]Error => code: 'undefined'; message = 'Cannot read property 'toString' of undefined'
I then dug into the source code, and here is what I found:
https://github.com/Azure/azure-devtestlab/blob/cbca7792cbb717cf9dc613e1569f2dd7ce5cf546/tasks/Node/src/modules/task-utils/deployutil.ts#L96
This piece of code seems it only handles 'value' of parameter, and not 'reference', although 'reference' is allowed according to the schema.
- Ngôn ngữ chính
- PowerShell
- Star
- 465
- Fork
- 595
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 Azure/azure-devtestlab
-
CopyAzVHDFromVMToLab.ps1 - warn that source VM will be stopped for as long as the copy takesĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Azure/azure-devtestlab#911 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Azure/azure-devtestlab#914 ·
-
Node 10 Deprecation WarningĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Azure/azure-devtestlab#912 ·
-
windows-domain-join-newĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Azure/azure-devtestlab#909 ·
-
Copy custom images across DTLĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Azure/azure-devtestlab#905 ·
Tất cả issue của Azure/azure-devtestlab
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws-cloudformation/cfn-lint#4854 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`AnthropicBedrock` 2.x sends `anthropic_version: 2026-10-21`, which Bedrock rejects for Claude Sonnet 4.5, Opus 4.5 and Opus 4.6Có thể đã có người làm @charan-rathore đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
anthropics/anthropic-sdk-python#2031 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
filer.remote.sync writes the S3 bucket-owner index (<buckets>/.system/owners/...) to remote storageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
:beetle: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
auth0/terraform-provider-auth0#1762 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
azurerm_ip_group list resource fails when Azure returns lowercase resourcegroups in resource IDĐang mởservice/network v/5.x
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
hashicorp/terraform-provider-azurerm#33704 ·
Maintainer thường phản hồi trong vòng 1 ngày