diff --git a/main.bicep b/main.bicep index 3625799..424c0a3 100644 --- a/main.bicep +++ b/main.bicep @@ -9,8 +9,8 @@ resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = { name: appServicePlanName location: location sku: { - name: 'F1' - tier: 'Free' + name: 'S3' + tier: 'Standard' } kind: 'app' } diff --git a/main.json b/main.json new file mode 100644 index 0000000..99e17d8 --- /dev/null +++ b/main.json @@ -0,0 +1,56 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.37.4.10188", + "templateHash": "7193739432442965847" + } + }, + "parameters": { + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]" + }, + "appServicePlanName": { + "type": "string", + "defaultValue": "cpu-app20250714124552Plan" + }, + "webAppName": { + "type": "string", + "defaultValue": "test_webapp" + } + }, + "resources": [ + { + "type": "Microsoft.Web/serverfarms", + "apiVersion": "2022-03-01", + "name": "[parameters('appServicePlanName')]", + "location": "[parameters('location')]", + "sku": { + "name": "S3", + "tier": "Standard" + }, + "kind": "app" + }, + { + "type": "Microsoft.Web/sites", + "apiVersion": "2022-03-01", + "name": "[parameters('webAppName')]", + "location": "[parameters('location')]", + "properties": { + "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('appServicePlanName'))]" + }, + "dependsOn": [ + "[resourceId('Microsoft.Web/serverfarms', parameters('appServicePlanName'))]" + ] + } + ], + "outputs": { + "webAppUrl": { + "type": "string", + "value": "[format('https://{0}.azurewebsites.net', parameters('webAppName'))]" + } + } +} \ No newline at end of file