我可以自己回答:这确实可以通过ARM模板编写脚本。 (我最初尝试使用resources.azure.com
,但它没有显示我网站的所有配置信息;注销并再次返回使其行为。)解决方案是在Microsoft.Web/sites
资源中为您的Web应用程序使用嵌套资源类型config
和名称web
指定的设置,例如:
{
"type": "Microsoft.Web/sites",
...
"resources": [
{
"apiVersion": "2015-04-01",
"name": "web",
"type": "config",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('someName'))]"
],
"properties": {
"siteAuthEnabled": true,
"siteAuthSettings": {
"enabled": null,
"httpApiPrefixPath": null,
"unauthenticatedClientAction": null,
"tokenStoreEnabled": null,
"allowedExternalRedirectUrls": null,
"defaultProvider": null,
"clientId": "REMOVED",
"clientSecret": null,
"issuer": "https://sts.windows.net/REMOVED/",
"allowedAudiences": null,
"additionalLoginParams": null,
"isAadAutoProvisioned": false,
"aadClientId": "REMOVED",
"openIdIssuer": "https://sts.windows.net/REMOVED/",
"googleClientId": null,
"googleClientSecret": null,
"googleOAuthScopes": null,
"facebookAppId": null,
"facebookAppSecret": null,
"facebookOAuthScopes": null,
"twitterConsumerKey": null,
"twitterConsumerSecret": null,
"microsoftAccountClientId": null,
"microsoftAccountClientSecret": null,
"microsoftAccountOAuthScopes": null
}
}
}
]
}