Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Allow querying for multiple labels from ARM Template using listKeyValue

オープン
#412 コメント 14 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
azure

調査の方向性

このissueには、リポジトリのファイル、テスト、実装のエントリーポイントが記載されていません。まず、listKeyValueのARM-template統合と、現在の単一ラベルでの動作を特定してください。doneは、順序付けられたラベルが最初に一致するキー値を返すものとして定義し、ここで説明されているfallbackとoverrideの例をカバーしてください。

索引モデルが issue の本文から書いたものです。

説明

ARM enhancement

I have been exploring the integration of App Configuration with ARM templates. Ideally I would like to be able to query for the value of key with an array of labels, returning only the first matching value.

Example scenario:
An overly simple example might be the following.

{
  "$schema": "https://schema.management.azure.com/schemas/2019-08-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.9",
  "parameters": {
    "environment": {
      "type": "String",
      "defaultValue": "dev",
      "metadata": {
        "description": "This is the SDLC environment that is being deployed to."
      }
    }
  },
  "variables": {
    "keyVaultName":"[concat(parameters('environment'),'-keyvault01')]",
    "skuFamily": {
      "key": "/keyvault/sku/family",
      "label": ["[variables('keyVaultName')]","[parameters('environment')]", "default"]
    },
    "skuName": {
      "key": "/keyvault/sku/name",
      "label": ["[variables('keyVaultName')]","[parameters('environment')]", "default"]
    },
    "enableSoftDelete": { 
      "key": "/keyvault/enableSoftDelete",
      "label": ["[variables('keyVaultName')]","[parameters('environment')]", "default"]
      }
  },
  "resources": [
    {
      "type": "Microsoft.KeyVault/vaults",
      "apiVersion": "2016-10-01",
      "name": "[variables('keyVaultName')]",
      "location": "northcentral",
      "properties": {
        "sku": {
          "family": "[listKeyValue(resourceId('Microsoft.AppConfiguration/configurationStores', 'appConfig01'), '2019-10-01',variables('skuFamily')).value]",          
          "name": "[listKeyValue(resourceId('Microsoft.AppConfiguration/configurationStores', 'appConfig01'), '2019-10-01',variables('skuName')).value]"
        },
        "accessPolicies": [],
        "tenantId": "53a61a04-8224-4d62-b270-a5823ebeb33c",
        "enabledForDeployment": false,
        "enabledForDiskEncryption": false,
        "enabledForTemplateDeployment": false,
        "enableSoftDelete": "[listKeyValue(resourceId('Microsoft.AppConfiguration/configurationStores', 'appConfig01'), '2019-10-01',variables('enableSoftDelete')).value]"
      }
    }
  ]
}


You can see that I am querying for some configuration Keys for Sku and enableSoftDelete. I am ordering my array of labels from most specific to least in this case. Enabling something like this would allow me to:

  • Provide a default for everything (least specific).
    • All keyvaults will be deployed as standard
  • Allow for an overload based on environment (more specific).
    • All keyvaults in production will be deployed as premium
  • While also allowing me to handle an exception for a specific named instance (most specific).
    • This specific production keyvault should be standard.
主要言語
言語のデータがありません
スター
263
フォーク
82
平均マージ
7日 14時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/AppConfiguration のほかの issue

Azure/AppConfiguration の issue をすべて見る

似ている issue

Cloud の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。