นำเข้าเทมเพลต Azure Resource Manager — ไซต์ App Service เนมสเปซ Event Hubs ของไซต์ และไซต์แบบสถิต
เทมเพลต Azure Resource Manager ที่aggrega import: แมป
นำ
| โฟลเดอร์ | สิ่ง |
|---|---|
source/ | .aggrega-config.yaml ที่notes/ ซึ่งmain.json และmain.parameters.json อยู่ |
draft/ | ไฟล์aggrega import notes เขียน โดยrelease.lock ออก รวมstdout.txt ทางimport.txt ทาง |
reviewed/ | ฉบับ |
ในcheck.sh รันdraft/ เปรียบreviewed/ ต้องAGGREGA_CATALOG_DIRS
ร่างตัวอย่าง
คุณ
เขียน
aggrega draft --example import-armจาก
cd import-armบิลด์
การนำsource/ โดยarm ซึ่ง
cd sourceaggrega import notesRelease ของreviewed/ เก็บ Release ที่
cd ../reviewedaggrega pull --release release.yamlaggrega build --release release.yamlบิลด์dist/arm/arm-template.json ส่วน
กับผู้ช่วย AI
ผู้
ใช้เครื่องมือของ Aggrega เท่านั้น และอย่าสร้างโฟลเดอร์เอง ถ้าโฟลเดอร์พื้นที่ทำงานยังไม่มีโฟลเดอร์ `import-arm` เรียกเครื่องมือ `draft` หนึ่งครั้งโดยตั้ง `example` เป็น `import-arm` และไม่ระบุ `dir`: เครื่องมือนี้เขียนตัวอย่างลงในโฟลเดอร์ `import-arm` ใหม่ จากนั้นเรียกเครื่องมือ `import` โดยตั้ง `workspace_root` เป็น `import-arm/source` และ `source` เป็น `notes`: เครื่องมือนี้เขียนฉบับร่างลงใน `import-arm/source` และ pull สิ่งที่ฉบับร่างต้องใช้ จากนั้นเรียกเครื่องมือ `build` โดยตั้ง `workspace_root` เป็น `import-arm/reviewed`, `release` เป็น `release.yaml`, `auto_pull` เป็น true และ `write` เป็น true บอกฉันว่าบิลด์เขียนไฟล์ใดบ้าง ไฟล์เหล่านั้นอยู่ใต้ `import-arm/reviewed/dist/`สัญญาอนุญาต
source/notes/main.json ฝังavm/res/event-hub/namespace เวอร์ชัน 0.15.3 ตามehModule ของmcr.microsoft.com/bicep/avm/res/event-hub/namespace:0.15.3 ซึ่งsha256:04136424c82b44282eb9c80e49751d5cbd94f080ae16c10a9ac64692067fd7a4:
MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.