Skip to content

Commit 444b00d

Browse files
committed
Change to own app service plan
1 parent dc97e5f commit 444b00d

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/ChessChampion.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ jobs:
3838
run: >
3939
az deployment group create --resource-group ${{ secrets.AZURE_RG }}
4040
--template-file Infrastructure/main.bicep
41-
--parameters
42-
webSiteName=${{ env.AZURE_WEBAPP_NAME }}
43-
appServicePlanName=${{ secrets.AZURE_SHARED_PLAN }}
44-
appServicePlanResourceGroupName=${{ secrets.AZURE_SHARED_PLAN_RG }}
41+
--parameters webSiteName=${{ env.AZURE_WEBAPP_NAME }}
4542
4643
- name: Publish
4744
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" -o "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"

Infrastructure/main.bicep

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
param location string = resourceGroup().location
22
@minLength(3)
33
param webSiteName string
4-
param appServicePlanName string
5-
param appServicePlanResourceGroupName string
4+
param planName string = 'asp-${webSiteName}'
5+
param sku string = 'F1'
66

7-
resource appServicePlan 'Microsoft.Web/serverfarms@2024-11-01' existing = {
8-
name: appServicePlanName
9-
scope: resourceGroup(appServicePlanResourceGroupName)
7+
resource appServicePlan 'Microsoft.Web/serverfarms@2024-11-01' = {
8+
name: planName
9+
location: location
10+
kind: 'linux'
11+
sku: {
12+
name: sku
13+
}
14+
properties: {
15+
reserved: true
16+
}
1017
}
1118

1219
resource appService 'Microsoft.Web/sites@2024-11-01' = {

0 commit comments

Comments
 (0)