我想使用PowerShell创建Azure Flask,就像我们如何在PowerShell中创建Web App一样(请参阅下文)。有没有任何命令可以做到这一点。使用PowerShell创建Azure Flask
新AzureRmWebApp -ResourceGroupName $ WebAppResourceGroupName杂牌 $ WebAppName -Location $ WebAppLocation -AppServicePlan $ WebAppServicePlanName
我想使用PowerShell创建Azure Flask,就像我们如何在PowerShell中创建Web App一样(请参阅下文)。有没有任何命令可以做到这一点。使用PowerShell创建Azure Flask
新AzureRmWebApp -ResourceGroupName $ WebAppResourceGroupName杂牌 $ WebAppName -Location $ WebAppLocation -AppServicePlan $ WebAppServicePlanName
下面是一个ARM模板部署瓶应用:
{
"parameters": {
"name": {
"type": "string"
},
"hostingPlanName": {
"type": "string"
},
"location": {
"type": "string"
},
"hostingEnvironment": {
"type": "string"
},
"serverFarmResourceGroup": {
"type": "string"
},
"subscriptionId": {
"type": "string"
}
},
"resources": [
{
"name": "[parameters('name')]",
"type": "Microsoft.Web/sites",
"properties": {
"siteConfig": {
"appSettings": []
},
"name": "[parameters('name')]",
"serverFarmId": "[concat('/subscriptions/', parameters('subscriptionId'),'/resourcegroups/', parameters('serverFarmResourceGroup'), '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]",
"hostingEnvironment": "[parameters('hostingEnvironment')]"
},
"resources": [
{
"apiVersion": "2016-03-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', parameters('name'))]"
],
"properties": {
"RepoUrl": "https://github.com/azureappserviceoss/FlaskAzure",
"branch": "master",
"IsManualIntegration": true
}
}
],
"apiVersion": "2016-03-01",
"location": "[parameters('location')]",
"tags": {
"[concat('hidden-related:', '/subscriptions/', parameters('subscriptionId'),'/resourcegroups/', parameters('serverFarmResourceGroup'), '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty"
}
}
],
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0"
}
你将其存储在一个文件或一个网址,并与New-AzureRMResourceGroupDeployment
我能够成功地创建Web应用程序。但是当我浏览web应用程序时,我错误 –
运行时错误 描述:服务器上发生应用程序错误。此应用程序的当前自定义错误设置可防止远程查看应用程序错误的详细信息。但是,它可以通过本地服务器上运行的浏览器来查看。 详细信息:要使此特定错误消息的详细信息可以在远程计算机上查看,请在位于当前Web应用程序根目录中的“web.config”配置文件中创建
没有具体的命令,但我相信你可以用Powershell做到这一点,也可以用ARM模板做到这一点 – 4c74356b41
你能提供任何示例 –