نشر خدمة لا يملكها الكتالوج
حين لا يضم الكتالوج Component لخدمة سحابية، يمكن أن يقوم مقامه وصفُ المورِّد نفسه لنوع المورد الخاص بتلك الخدمة. يقرأ aggrega import الوصف — المخطط الذي يطرحه مورِّد سحابي لنوع مورد — ويصوغ منه ملفين: Component يعلن إعدادات النوع في الركائز التي يقرؤها Aggrega، و Recipe يحقق Component من أجل موفِّر بكتابة مورد واحد بالضبط من ذلك النوع. تراجع المسودات، وتضيف الأسطر التي تستخدمها إلى Aggregate و Release، ثم تبني.
تُقرأ ثلاث صيغ، كل منها بواسطة مستورِد أساسي يخدمها:
| الصيغة | المخطط الذي تصدّره | موفِّر Recipe |
|---|---|---|
cloudformation-schema | نوع مورد CloudFormation، من aws cloudformation describe-type أو من ملف مخطط الموفِّر | cloudformation |
terraform-schema | مخطط موفِّر Terraform أو OpenTofu، من terraform providers schema -json | terraform |
arm-schema | ملف أنواع Bicep الخاص بموفِّر موارد Azure، types.json | arm |
تعمل هذه الصفحة على حالة Azure من البداية إلى النهاية، ثم تعرض حالتي CloudFormation و Terraform، وصيغة بديلة تصوغ Recipe وحدها من أجل Component يحتويه الكتالوج أصلًا. والأوامر والإخراج في أجزاء Azure أدناه من تشغيل لبناء من إصدار المحوِّل البرمجي الذي يحمل هذه المستورِدات وموفِّر arm.
لا يُجلب شيء نيابة عنك. تصدّر المخطط بأداة المورِّد نفسه، فيقرأ الاستيراد ملفًا تملكه ولا يصل إلى أي حساب سحابي.
تصدير المخطط
تكتب أداة كل مورِّد المخطط في ملف. شغّل الأداة الخاصة بسحابتك، في مساحة عمل:
# CloudFormation: any registered type, third-party and private ones included.aws cloudformation describe-type --type RESOURCE --type-name AWS::SQS::Queue > sqs-queue.json
# Terraform or OpenTofu: in a directory whose configuration requires the provider.terraform init && terraform providers schema -json > schema.json
# Azure: no export is needed. Bicep's type files are published in the# Azure/bicep-types-az repository, one for each resource provider and API# version, at generated/<namespace>/<provider>/<apiVersion>/types.json.تستخدم حالة Azure أدناه ملف Microsoft.ManagedIdentity عند إصدار API 2024-11-30، المحفوظ في مجلد اسمه msi تحت الاسم الذي يعطيه Bicep له، types.json.
ملف مخطط Azure ورخصته
ملف types.json العائد إلى Microsoft.ManagedIdentity عند 2024-11-30 هو ملف من مستودع Azure/bicep-types-az، حقوق النشر محفوظة لشركة Microsoft Corporation، ويُوزَّع بموجب رخصة MIT. والأوصاف التي تقتبسها المسودات أدناه هي أوصاف Microsoft، وينطبق عليها إشعار الرخصة:
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مساحة العمل مجلد يحتوي على ملف .aggrega-config.yaml فيه مفتاح workspace، ومجلد msi فيه الملف:
.aggrega-config.yamlmsi/types.jsonسرد الأنواع التي ستُصاغ مسوداتها
يمكن أن يحتوي ملف المخطط على أكثر من نوع مورد واحد، ولا يصوغ الاستيراد إلا الأنواع التي تسمّيها. اسرد ما يحتويه الملف:
jq -r '.[] | select(."$type" == "ResourceType") | .name' msi/types.jsonMicrosoft.ManagedIdentity/userAssignedIdentities@2024-11-30Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials@2024-11-30Microsoft.ManagedIdentity/identities@2024-11-30ثم سمِّ النوع الذي تريده تحت إعداد resource_types في إدخال المستورِد ضمن .aggrega-config.yaml. كل مساحة عمل تخدم المستورِد أصلًا، لذا لا يلزم الإدخال إلا لتمرير resource_types. ويسمّي الحقل uri فيه المستورِد وإصدار المحوِّل البرمجي، الذي يطبعه الأمر aggrega version؛ ويُسلَّم المستورِد إعداداته عبر إدخال كهذا، كما يصف أي مستورِد يحوّل مصدرًا إلى مسودات:
workspace: {}default_registry: hub.aggrega.aiplugins: importer: - uri: importer/arm-schema:<compiler version> with: settings: resource_types: - Microsoft.ManagedIdentity/userAssignedIdentitiesتُطابَق الأسماء تمامًا في CloudFormation (AWS::SQS::Queue) و Terraform (aws_sqs_queue)، ودون اعتبار لحالة الأحرف في Azure، حيث قد يحمل الاسم إصدار API بعد @. والملف الذي يحتوي نوعًا واحدًا بالضبط لا يحتاج قائمة. أما استيراد ملف يحتوي عدة أنواع بلا قائمة فيتوقف ويسمّيها:
halt: the sources hold 3 resource types and the resource_types setting names none: write the types to draft in it, one of Microsoft.ManagedIdentity/userAssignedIdentities, Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials, Microsoft.ManagedIdentity/identitiesوالنوع المدرج الذي لا يحتويه الملف يوقف الاستيراد أيضًا، مسمّيًا أقرب الأسماء التي يحتويها. والإيقاف لا يصوغ شيئًا، فلا يُكتب أي ملف.
شغّل الاستيراد
سمِّ المجلد، أو الملف:
aggrega import msiيسرد على الإخراج القياسي ما كتبه:
wrote catalog/component/imported/security/microsoft-managedidentity-userassignedidentities/0.1.0/component.yamlwrote catalog/recipe/arm/microsoft-managedidentity-userassignedidentities/0.1.0/recipe.yamlwrote .aggrega-import.jsonعلى الخطأ القياسي، حيث يمثّل <workspace> المجلد الذي شغّلته فيه:
read as the arm-schema format, with drafted paths relative to <workspace>mapped Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-30 (Microsoft.ManagedIdentity/userAssignedIdentities) to imported/security/microsoft-managedidentity-userassignedidentities as a draft, NONE at 0.05يتعرف aggrega import على ملف أنواع Bicep اسمه types.json، كما يسمّيها Azure/bicep-types-az، ويسمّي --format arm-schema الصيغة لملف اسمه بغير ذلك. كما أن --format هو أيضًا الطريقة لاستيراد تصدير كبير، مثل مخطط Terraform الكامل لموفِّر، دون أن يتعرف عليه الاستيراد أولًا.
يقول سطر mapped إن نوع المورد صار مسودة قائمة بذاتها، دون Component في الكتالوج قريب منها. وتُكتب المسودات تحت catalog/، وهو مجلد تقرؤه مساحة العمل بوصفه كتالوجًا، فتُحلّ عند التحقق والبناء التاليين دون شيء يُكوَّن. ويسردها السجل .aggrega-import.json، ليتمكن aggrega import --sync من تحديثها وفق مخطط تغيّر دون الكتابة فوق تعديل أجريته.
ما تقوله المسودات
يصنّف الملف component.yaml، وهو Component، كل خاصية من خصائص نوع المورد في ركيزة واحدة، ويسمّي تعليق بجانب كل مفتاح القاعدة التي وضعته:
- الخاصية المقروءة رجوعًا، وهي التي تضبطها السحابة ولا تستطيع ضبطها أنت، ليست مدخلًا. وتصبح القيمة المفردة مفتاح
providesيستطيع مستهلك قراءته. - يُصاغ السر بوصفه إشارة إلى المكان الذي تأتي منه قيمته، ولا يُصاغ قيمةً أبدًا، كما يصف قسم الأسرار أدناه.
- الموضع، أي مكان وجود المورد، مثل
locationفي Azure، يذهب إلىinfra، الركيزة التي يقدّمها المشغِّل لكل بيئة. - الهوية، أي اسم المورد نفسه، تذهب إلى
values، الركيزة التي يكتبها المطوِّر. - أي خاصية أخرى مطلوبة تذهب إلى
infra. - كل خاصية أخرى قابلة للكتابة تذهب تحت
infra.overrides، وهو خريطة مفتوحة تحتفظ بتهجئة المورِّد الخاصة بكل اسم.
ومن أجل نوع المورد هذا يقرأ Component كما يلي:
apiVersion: aggrega.ai/v1beta1kind: Componentmetadata: name: imported/security/microsoft-managedidentity-userassignedidentities version: 0.1.0 description: "Draft Component of the resource type Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-30, imported from a source in the arm-schema format." labels: component.aggrega.ai/type: resource component.aggrega.ai/category: security component.aggrega.ai/hosting: managedspec: schema: values: type: object properties: # identity: the resource's own name or identifier # [vendor schema text] The resource name name: type: string description: "[vendor schema text] The resource name" required: true additionalProperties: false infra: type: object properties: # placement: where the resource is deployed # [vendor schema text] The geo-location where the resource lives location: type: string description: "[vendor schema text] The geo-location where the resource lives" required: true # override: every writable property no other rule places, each under the vendor's own name overrides: type: object description: "Writable settings of Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-30, each under the vendor's own name, which the Recipe passes to the resource as written; its header lists the names it reads." additionalProperties: true additionalProperties: false provides: type: object properties: # read back: published under provides # [vendor schema text] The resource id id: type: string description: "[vendor schema text] The resource id" # … client_id, principal_id and tenant_id, each read back the same way additionalProperties: falseكل نص تأخذه المسودة من مخطط المورِّد يفتتح بالنص [vendor schema text]، لتجدها وتعيد كتابتها بكلماتك قبل أن يغادر Component مساحة عملك. أما النص الذي يؤلفه الاستيراد فلا يحمل وسمًا.
يحقق Recipe، وهو recipe.yaml، Component على الموفِّر arm. ويسرد تعليق ترويسته كل مفتاح يقرؤه، مع قاعدته ونوعه، وما لا يقرؤه:
spec: # This Recipe realizes imported/security/microsoft-managedidentity-userassignedidentities with one resource of the type Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-30. It reads the keys below, each with its type, its rule and the first sentence of the vendor's description; any other key under infra.overrides halts the build naming it. # infra.location: string, required; placement: where the resource is deployed # [… omitted: the first sentence of the vendor's description of the key above, marked as vendor schema text, as below each key] # values.name: string, required; identity: the resource's own name or identifier # [… omitted: the vendor's description of the key] # infra.overrides.tags: object; override: writable, set under infra.overrides in the vendor's spelling # [… omitted: the vendor's description of the key] # infra.overrides.isolationScope: string; override: writable, set under infra.overrides in the vendor's spelling # [… omitted: the vendor's description of the key, then a line saying template.yaml declares the resource under the symbolic name locals.symbol holds] capability: arm implements: imported/security/microsoft-managedidentity-userassignedidentities:0.1.0 locals: # [… omitted: a comment saying what the symbolic name is made of] symbol: "{{ capitalizedWords .context.instance_id }}" provides: # [… omitted: a comment saying each value is one whole ARM expression, evaluated when the template is deployed] id: "[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities'{{ range splitList \"/\" (toString (index .values \"name\")) }}, '{{ replace \"'\" \"''\" . }}'{{ end }})]" client_id: "[reference('{{ .locals.symbol }}').clientId]" # … principal_id and tenant_id the same way assertions: overrides_this_recipe_reads: | # halts naming any key under infra.overrides the header does not list artifacts: template.yaml: | # … the resource, written under the symbolic name locals.symbol holdsيكتب Recipe موردًا واحدًا، هو الذي يسمّيه النوع، ولا شيء غيره: لا مجموعة موارد، ولا شبكة، ولا هوية لم تعلنها. وكل قيمة provides هي تعبير كامل يقيّمه Azure حين يُنشر القالب، ويُمرَّر إلى المستهلك بوصفه السلسلة النصية التي هو عليها. والمفتاح في infra.overrides الذي لا تسرده الترويسة يوقف البناء مسمّيًا إياه، فيُكتشف الإعداد المكتوب خطأً قبل نشر أي شيء.
راجع الملفين قبل أن تبني. نقل إعداد بين الركائز تعديل على Component وعلى قراءة Recipe له، والملفان ملكك: لا يوجد في أي مكان آخر ما يعتمد عليه البناء.
استخدام المسودات في Aggregate و Release
لا يصوغ الاستيراد أي Aggregate ولا Manifest ولا Release، لذا فالأسطر التي تستخدم Component المصوغ لك أنت. في Aggregate، وهو aggregate.yaml، مكوِّن واحد من النوع المصوغ، يحمل الهوية التي تحتفظ بها ركيزة values:
apiVersion: aggrega.ai/v1beta1kind: Aggregatemetadata: name: identities version: 1.0.0spec: components: deploy-identity: type: imported/security/microsoft-managedidentity-userassignedidentities:0.1.0 values: name: deploy-identityفي Manifest، وهو manifest.yaml، سطر واحد يقول أي Recipe تحقق النوع:
apiVersion: aggrega.ai/v1beta1kind: Manifestmetadata: name: identities version: 1.0.0spec: mappings: components: type: imported/security/microsoft-managedidentity-userassignedidentities:0.1.0: arm/microsoft-managedidentity-userassignedidentities:0.1.0في Release، وهو release.yaml، الحد الذي يستقر فيه المكوِّن وركيزة infra التي تتطلبها Recipe، أي الموضع:
apiVersion: aggrega.ai/v1beta1kind: Releasemetadata: name: identities version: 1.0.0 environment: productionspec: aggregate: ./aggregate.yaml manifest: ./manifest.yaml boundaries: azure: directory: azure components: deploy-identity: infra: location: westeuropeالتحقق والبناء
aggrega validate --release release.yamlrelease dependency validation passed: release.yaml (schema-pillar + dependency pillars)نفّذ pull لما يعتمد عليه Release، ثم ابنِ:
aggrega pull --release release.yamlaggrega build --release release.yamlPull complete: release.lock (entities=…, source_artifacts=…, external_inputs=…)[… omitted: the build's elapsed time]Build completed: 1 file written to <workspace>/distيكتب البناء dist/azure/arm/arm-template.json، وهو القالب الوحيد للحد azure، بمورد واحد، تحت الاسم الرمزي الذي يعطيه له مثيله. وإلى جانب أعضاء المورد نفسه، يسجّل البناء تحت metadata أي Aggregate و Release و Recipe أنتجه:
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "languageVersion": "2.0", "resources": { "DeployIdentity": { "apiVersion": "2024-11-30", "location": "westeurope", "metadata": { "aggrega.ai/provenance": { "aggrega.ai/aggregate-name": "identities", "aggrega.ai/boundary-path": "azure", "aggrega.ai/compiler-version": "<compiler version>", "aggrega.ai/component-id": "deploy-identity", "aggrega.ai/environment": "production", "aggrega.ai/provider": "arm", "aggrega.ai/provider-version": "<compiler version>", "aggrega.ai/recipe-uri": "microsoft-managedidentity-userassignedidentities:0.1.0" } }, "name": "deploy-identity", "type": "Microsoft.ManagedIdentity/userAssignedIdentities" } }}القالب هو ما تسلّمه إلى Azure؛ ويصف موفِّر arm الأوامر التي تنشره على نطاق مجموعة الموارد. أما نوع المورد الذي يمكن كتابته على نطاق الاشتراك أو مجموعة الإدارة فقط فيُصاغ مقطعًا لذلك النطاق، وتسمّي ترويسة Recipe الخاصة به التعليق التوضيحي للحد الذي يضبطه Release، كما يصف كلٌّ من النشر على نطاق الاشتراك و النشر على نطاق مجموعة الإدارة. ويُرفض بالاسم النوع الذي يمكن كتابته على نطاق المستأجر فقط، أو بوصفه امتدادًا لمورد آخر فقط.
الأسرار
لا تُكتب قيمة خاصية سرية في مسودة أبدًا، ولا تُصاغ لها قيمة افتراضية. وكيف تصل إلى المورد يتبع الموفِّر:
- Azure: مُعامِل
securestringعلى المستوى الأعلى في القالب، يسمّى باسم المثيل والخاصية، وتقدّمه أنت حين تنشر. والسر الذي يعلّمه المورِّد اختياريًا مُعامِل مطلوب. - CloudFormation: إدخال
Parametersفي القالب معلَّمNoEcho، يسمّى بالطريقة نفسها. والسر الذي يعلّمه المورِّد اختياريًا مُعامِل مطلوب. - Terraform: خانة Feature على Component، ومتغيّر وحدة معلَّم
sensitive: true؛ وتأتي القيمة عبر السر الذي يرفقه Release بالخانة.
لا تصبح سرًّا إلا خاصية في أعلى المورد — في Azure مفتاح جذري أو عضو في properties. أما العضو الحساس الذي يقع تحت واحدة منها، مثل adminPassword داخل osProfile في Azure أو password داخل كتلة Terraform، فلا يُصاغ سرًّا: يضبطه Release قيمة عادية داخل المفتاح الذي صيغ أبوه تحته، ويحذّر الاستيراد من كل واحد منها تحت constraint-dropped، مسمّيًا مساره وذلك المفتاح.
تُقرأ خاصية CloudFormation سرًّا حين يحمل اسمها كلمة من كلمات بيانات الاعتماد — password أو secret أو token أو credential أو private key أو API key أو passphrase — ولا ينتهي بالكلمة Arn أو Id أو Name أو Ref. وهذه القراءة عُرف في المسودة، وتعلّم ترويسة Recipe كل خاصية قرأتها سرًّا، لذا تؤكدها في المراجعة.
الاستيراد نفسه على CloudFormation و Terraform
الخطوات هي نفسها؛ ولا يختلف سوى التصدير وشكل Recipe. وتُصاغ الحالتان أدناه من مخططات اصطناعية، ويُترك نص المورِّد فيها خارج ما يلي.
CloudFormation
aws cloudformation describe-type --type RESOURCE --type-name AWS::Example::Ledger > ledger.jsonaggrega import ledger.jsonيكتب الاستيراد Component و Recipe، وتحذيرًا واحدًا لكل قيد من قيود المورِّد لا يستطيع حمله:
wrote catalog/component/imported/component/aws-example-ledger/0.1.0/component.yamlwrote catalog/recipe/cloudformation/aws-example-ledger/0.1.0/recipe.yamlwrote .aggrega-import.jsonread as the cloudformation-schema format, with drafted paths relative to <workspace>warn: the property "LedgerName" does not carry the vendor schema's pattern "…": the catalog reads a pattern as an RE2 regular expression, which refuses it: …warn: the property "Rules[].Children[]" does not carry the vendor schema's shape below it: the vendor schema's definitions refer back to themselves there, so it is drafted as an open objectmapped AWS::Example::Ledger (AWS::Example::Ledger) to imported/component/aws-example-ledger as a draft, NONE at 0.0167يعلن ملف template.yaml في Recipe المورد تحت معرّف منطقي يعطيه له المثيل، مع السر بوصفه مُعامِلًا NoEcho، وكل مفتاح provides مكتوبًا بالصيغة !Ref أو !GetAtt، ومكررًا تحت provides حتى يُسقطه موفِّر cloudformation في Outputs الخاصة بالمكدس:
artifacts: template.yaml: | Parameters: {{ .locals.logical_id }}MasterPassword: Type: String NoEcho: true Resources: {{ .locals.logical_id }}: Type: AWS::Example::Ledger Properties: # … one line for each key the header lists MasterPassword: !Ref {{ .locals.logical_id }}MasterPassword provides: arn: !GetAtt {{ .locals.logical_id }}.ArnTerraform
terraform init && terraform providers schema -json > schema.jsonaggrega import schema.jsonwrote catalog/component/imported/component/aws-example-ledger/0.1.0/component.yamlwrote catalog/recipe/terraform/aws-example-ledger/0.1.0/recipe.yamlwrote catalog/recipe/terraform/aws-example-ledger/0.1.0/module/main.tf.jsonwrote .aggrega-import.jsonيسمّي تصدير Terraform الموفِّرين الذين يتطلبهم تكوين ولا يسمّي إصدارًا لهم، لذا يحذّر الاستيراد:
warn: no version of the provider hashicorp/aws is known, so the module drafted for aws_example_ledger requires it without a version constraint: set terraform.required_providers.aws.version in the module/main.tf.json beside the Recipe, then run aggrega pin on the Recipeمسودة Terraform هي Recipe بجانبها وحدة. يعلن module/main.tf.json متغيّرًا واحدًا لكل مدخل، والمورد الواحد، this، مع قراءة كل وسيطة من متغيّرها، والموفِّر الذي يسمّيه التصدير. ويشير spec.source في Recipe إلى الوحدة، ويملأ valuesMapping فيها كل متغيّر من ركائز Component، فلا يكتب مدخلًا اختياريًا إلا حيث يضبطه Release. ثبّت الوحدة قبل أول pull، ليسجّل ملف القفل ملخّصها:
aggrega pin catalog/recipe/terraform/aws-example-ledger/0.1.0/recipe.yamlPinned Recipe "aws-example-ledger": wrote <workspace>/catalog/recipe/terraform/aws-example-ledger/0.1.0/entity.lock (remote source pins: 0, imported file pins: 0, local source file pins: 1). Commit it beside the entityتوقف Recipe غير مثبَّتة عملية pull وتسمّي aggrega pin. ثبّت مرة أخرى بعد كل تعديل على الوحدة.
أسطر Aggregate و Manifest و Release هي نفسها في حالة Azure، مع الأسماء المصوغة و infra الذي يخص الموفِّر نفسه: يسمّي Release في حالة Terraform مفاتيح موضع الموفِّر، مثل region، حيث يعلنها Component.
Component يحتويه الكتالوج أصلًا
حين يحتوي الكتالوج على Component للخدمة، وتنقص Recipe وحدها من أجل موفِّرك، سمِّ ذلك Component في الإعداد. فيصوغ الاستيراد حينئذ Recipe وحدها، مكتوبة على ركائز Component. وكل إدخال في resource_types هو اسم نوع، أو كائن فيه النوع و Component:
plugins: importer: # The entry passes resource_types; the importer is served without it. - uri: importer/arm-schema:<compiler version> with: settings: resource_types: - type: Microsoft.ManagedIdentity/userAssignedIdentities component: acme/security/identityيأخذ Recipe الاسم identity-microsoft-managedidentity-userassignedidentities، نسبة إلى Component، فلا يأخذ أبدًا اسم Recipe موجود في الكتالوج أصلًا. ويقرأ Recipe خاصية النوع من values حين يعلن Component في الكتالوج مفتاح values يحمل اسمها؛ والخاصية التي يتطلبها المورِّد وليس لدى Component مفتاح لها تُقرأ من infra.overrides، مع تأكيد يوقف البناء حتى يضبطها Release. ويُكتب كل مفتاح يوفّره Component ويطابق سمة مقروءة رجوعًا بالاسم. أما لكل مفتاح آخر، فتكتب المسودة قالبًا يفشل مسمّيًا المفتاح، فيتوقف البناء حتى تطابقه، ويحذّر الاستيراد:
warn: the Component acme/security/identity provides principal_id, and no attribute Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-30 reads back carries its name, so the drafted Recipe's provides.principal_id halts the build until it is mapped: map it to an attribute Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-30 reads back, one of id, properties.clientId, properties.principalId, properties.tenantIdيضع Azure هذه السمة تحت properties، لذا فالسطر الذي يجب كتابته هو الذي تحمله المسودة الكاملة للنوع:
provides: principal_id: "[reference('{{ .locals.symbol }}').principalId]"ومع كتابة ذلك السطر، يسمّي Release ذلك Component في Aggregate و Recipe في Manifest كما سبق، ويضبط الموضع تحت infra.overrides.location، ويجتاز التحقق ويُبنى إلى القالب نفسه.
يُصاغ الاسم الذي لا يحتوي الكتالوج على Component له بوصفه Component جديدًا بذلك الاسم، ويحذّر الاستيراد، لئلا يُظن أن اسمًا أُخطئ في كتابة Component قائم هو Component جديد.
إلى أين تتجه بعد ذلك
- يصف المستورِدات الأساسية ما يقرؤه كل مستورِد، وكيف يختار بين عدة أنواع وبين عدة موفِّرين، والتقسيم بالتفصيل، وما يصوغه كل هدف، والتشخيصات التي تبلّغ عنها الثلاثة.
- يصف موفِّر arm القالب الذي تُدمج فيه مسودة Azure والنطاقات التي ينشر عليها.
- aggrega import هو المرجع الكامل للأمر.