2017-01-19 5 views
0

Azure Desired State Configuration JSONスキーマの公式ドキュメントを探しています。ドキュメントとサンプル私はオンラインがかなり前に戻ってきたと感じています。私が使用しているスキーマは最新ではないと感じています。私は現在、最新のスキーマとMicrosoft.Powershell.DSCのフィールドの説明を探しています。これはVisual Studioに用意されているスキーマですが、期待している各フィールドと値を完全に理解したいと思います。AzureのARMテンプレートスキーマのオーサリングソースの追加

{ 
    "name": "Microsoft.Powershell.DSC", 
    "type": "extensions", 
    "location": "[parameters('location')]", 
    "apiVersion": "2015-06-15", 
    "dependsOn": [ 
     "[resourceId('Microsoft.Compute/virtualMachines', parameters('vm-SP1-Name'))]" 
    ], 
    "tags": { 
     "displayName": "test" 
    }, 
    "properties": { 
     "publisher": "Microsoft.Powershell", 
     "type": "DSC", 
     "typeHandlerVersion": "2.9", 
     "autoUpgradeMinorVersion": true, 
     "forceUpdateTag": "[parameters('testUpdateTagVersion')]", 
     "settings": { 
      "configuration": { 
       "url": "[concat(parameters('_artifactsLocation'), '/', variables('testArchiveFolder'), '/', variables('testArchiveFileName'))]", 
       "script": "test.ps1", 
       "function": "Main" 
      }, 
      "configurationArguments": { 
       "nodeName": "[parameters('vm-SP1-Name')]" 
      } 
     }, 
     "protectedSettings": { 
      "configurationUrlSasToken": "[parameters('_artifactsLocationSasToken')]" 
     } 
    } 
} 

答えて

0

スキーマはthis blogに記載されています。ご質問がある場合はPowerShell slack(希望)またはtwitterで私にpingしてください。@TravisPlunk私が知らないなら、私はそれらを正しい場所に向けることができます。

+0

確認方法現在の非常に古いブログ記事ではありませんそのスキーマは私は現在のスキームと過去のスキーマに関する正式な文書を参照したいと思います。 – ChiliYago

+0

私たちが変更を加えると、ブログが更新されます。 – TravisEz13

1

ARM PowerShellの望ましい状態の設定(DSC)JSONスキーマは、以下のリンクで見つけることができる公式スキーマ定義:

Schema Json

"dscExtension": { 
     "type": "object", 
     "properties": { 
      "publisher": { 
       "enum": ["Microsoft.Powershell"] 
      }, 
      "type": { 
       "enum": ["DSC"] 
      }, 
      "typeHandlerVersion": { 
       "type": "string", 
       "minLength": 1 
      }, 
      "autoUpgradeMinorVersion": { 
       "type": "boolean" 
      }, 
      "settings": { 
       "type": "object", 
       "properties": { 
        "modulesUrl": { 
         "type": "string" 
        }, 
        "configurationFunction": { 
         "type": "string" 
        }, 
        "properties": { 
         "type": "string" 
        }, 
        "wmfVersion": { 
         "type": "string" 
        }, 
        "privacy": { 
         "type": "object", 
         "properties": { 
          "dataCollection": { 
           "type": "string" 
          } 
         } 
        } 
       }, 
       "required": ["modulesUrl", "configurationFunction"] 
      }, 
      "protectedSettings": { 
       "type": "object", 
       "properties": { 
        "dataBlobUri": { 
         "type": "string" 
        } 
       } 
      } 
     }, 
     "required": ["publisher", "type", "typeHandlerVersion", "autoUpgradeMinorVersion", "settings", "protectedSettings"] 
    }, 
+0

このスキーマは古くなっています。 PowerShellブログのものを使用してください。 – TravisEz13

関連する問題