diff --git a/azuredeploy.json b/azuredeploy.json index a711ebf9..caaa5ab8 100644 --- a/azuredeploy.json +++ b/azuredeploy.json @@ -208,14 +208,11 @@ // Web App // ------------------------------------------------------ { + "type": "Microsoft.Web/sites", "apiVersion": "2022-03-01", "name": "[parameters('BlazorWebsiteName')]", - "type": "Microsoft.Web/sites", "kind": "app", "location": "[parameters('location')]", - "dependsOn": [ - "[variables('hostingPlanName')]" - ], "tags": { "[concat('hidden-related:', resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName')))]": "empty", "displayName": "Website" @@ -224,33 +221,25 @@ "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName'))]", "siteConfig": { "webSocketsEnabled": true, - "netFrameworkVersion": "v9.0", - "appSettings": [ - { - "name": "WEBSITE_RUN_FROM_PACKAGE", - "value": "https://github.com/oqtane/oqtane.framework/releases/download/v6.1.1/Oqtane.Framework.6.1.1.Install.zip" - } - ] + "netFrameworkVersion": "v9.0" } }, + "dependsOn": [ + "[variables('hostingPlanName')]" + ], "resources": [ // -------------------------------------------------- - // Connection Strings (to use FQDN) + // ZIP Deploy // -------------------------------------------------- - { - "type": "config", - "apiVersion": "2022-03-01", - "name": "connectionstrings", - "dependsOn": [ - "[resourceId('Microsoft.Web/sites', parameters('BlazorWebsiteName'))]" - ], - "properties": { - "DefaultConnection": { - "value": "[concat('Data Source=tcp:', reference(resourceId('Microsoft.Sql/servers', parameters('sqlServerName'))).fullyQualifiedDomainName, ',1433;Initial Catalog=', parameters('sqlDatabaseName'), ';User Id=', parameters('sqlAdministratorLogin'), '@', reference(resourceId('Microsoft.Sql/servers', parameters('sqlServerName'))).fullyQualifiedDomainName, ';Password=', parameters('sqlAdministratorLoginPassword'), ';')]", - "type": "SQLAzure" - } - } - } + "type": "Microsoft.Web/sites/extensions", + "apiVersion": "2024-04-01", + "name": "[concat(parameters('BlazorWebsiteName'), '/ZipDeploy')]", + "properties": { + "packageUri": "https://github.com/oqtane/oqtane.framework/releases/download/v6.1.1/Oqtane.Framework.6.1.1.Install.zip" + }, + "dependsOn": [ + "[resourceId('Microsoft.Web/sites', parameters('BlazorWebsiteName'))]" + ] ] } ]