Add Support to Create ARM Template for policyDefinitions
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
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- azure, powershell
- Lĩnh vực
- cloud
Hướng nghiên cứu
The issue does not name a file, test, or entry point. Start by locating the policyDefinitions generation path and compare its current parameter-file output with the supplied JQ template; done means policyDefinitions are emitted as ARM templates with correctly handled policyRule expressions.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the solution you'd like
At the moment, due to string escape requirement for policyRule, policyDefinitions Templates are generated as parameter file.
It would be great to have policyDefinitions generated as ARM template. Following JQ Template can help with that
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "AzOps"
}
},
"parameters": {},
"variables": {},
"resources": [
{
"type": .Type,
"name": .name,
"apiVersion": "2021-06-01",
"properties": {
"description": .properties.description,
"displayName": .properties.displayName,
"metadata": {
"version": .properties.metadata.version,
"category": .properties.metadata.category
},
"mode": .properties.mode,
"parameters": .properties.parameters,
"policyRule": .properties.policyRule | walk(if type == "string" and (.|startswith("[")) then "[" + sub("^\\["; "[") else . end),
"policyType": .properties.policyType
}
}
],
"outputs": {}
}
- Ngôn ngữ chính
- PowerShell
- Star
- 420
- Fork
- 174
- Merge trung bình
- 16 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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/AzOps
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
Failed to export child resources Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
Issue tương tự
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Đang mởbug ecr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
docs-from-code
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
microsoft/aspire.dev#1734 ·
-
[BUG] Đang mởbug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
openwallet-foundation/eudiplo#1067 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
hashicorp/go-azure-helpers#286 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
akash-network/community#1526 ·