Azure App Service Deployment Guide - CassiniLaw/KnowledgeBase GitHub Wiki
Azure App Service Deployment Guide
Initial Setup
- Log into Azure Portal (portal.azure.com)
- Navigate to App Services
- Click "Create" -> Web app
Basic Configuration
- Select subscription and resource group
- Configure basic settings:
- Enter unique app name (this will be part of the url)
- un-check "Secure unique default hostname"
- Publish -> select "code"
- Select runtime stack "NET 6 LTS"
- Choose operating system "windows"
- Select region, for dev and uat is West US 2
- Select App Service Plan tier (if new windows plan)
Networking
- Click next to open Networking tab.
- Enable public access -> select "on"
Monitor + Secure
- Click next to open monitor tab.
- Click enable application insights -> yes.
- Create new Application Insights .
Create App Service
Click Review + Create , wait for the deployment finishes.
Virtual Network Integration Setup
- Navigate App Service on the left menu select Settings -> Networking section
- Select Outbound traffic configuration -> Virtual network integration -> Not configured
- Click "Add virtual network integration"
- Configure VNet settings:
- Select existing VNet used by Sanjel
Environment Variables Configuration
- Navigate App Service on the left menu select Settings -> Environment variables
- Select "App settings" or "Connection strings" tab
- Click "Add" for each variable:
- Set Name and Value
Deployment with GitHub Workflow
- Navigate App Service on the left menu select Overview
- Click on "Download publish profile"
- Save the content of the file as a secret in a GitHub repository, copy the file's content, navigate to the repository settings, go to "Secrets and variables" under the "Security" section.
Clonning existing app
Select an app service in the same resource as group the new App service to clone