2017-01-19 33 views
0

我正在尋找Azure希望的狀態配置JSON架構的官方文檔。我在網上找到的文檔和例子可以回溯一段時間,我感覺我正在使用的模式不是最新的。我目前正在尋找最新的模式和Microsoft.Powershell.DSC的字段描述。這是Visual Studio提供的模式,但我希望對每個字段和值都有完整的理解。Azure ARM模板架構的Authoratative源代碼調試

{ 
    "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上與我聯繫,@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