Create an Azure App Service
This guide will walk you through the steps to create a new Azure App Service instance using the Azure portal.
Prerequisites
Before you begin, ensure you have:
- An active Azure subscription.
- Appropriate permissions to create resources within your subscription.
Steps to Create an App Service
1. Navigate to the Azure Portal
Open your web browser and go to the Azure portal. Sign in with your Azure account credentials.
2. Initiate App Service Creation
In the Azure portal, click on the Create a resource button (usually found in the top-left corner).
In the search bar, type "App Service" and select it from the results. Then, click Create.
3. Configure Basic Settings
You'll be presented with a configuration blade. Fill in the following details:
- Subscription: Select the Azure subscription you want to use.
- Resource group: Choose an existing resource group or create a new one. A resource group is a logical container for your Azure resources.
- Name: Enter a globally unique name for your App Service. This name will be part of your app's default URL (e.g.,
your-app-name.azurewebsites.net
). - Publish: Select how you want to publish your code (e.g., Code, Docker Container). For this guide, we'll assume "Code".
- Runtime stack: Choose the programming language and version for your application (e.g., .NET Core 6.0, Node 18 LTS, Python 3.9).
- Operating System: Select either Windows or Linux.
- Region: Choose the Azure region closest to your users for optimal performance.
4. Configure Hosting Plan
Next, you need to configure the App Service Plan, which defines the compute resources, features, cost, and location of your web app.
- Operating System: This is pre-filled based on your previous selection.
- Location: This is pre-filled based on your previous selection.
- Pricing tier: Select a pricing tier that fits your needs and budget. Tiers range from Free and Shared to Basic, Standard, Premium, and Isolated, offering different levels of performance, features, and scalability.
If you need to create a new App Service Plan, click Create new and configure its name, OS, and pricing tier.
5. Review and Create
Once you've configured the basic settings and hosting plan, you can navigate through the other tabs (e.g., Deployment, Networking, Monitoring) to configure advanced settings if needed. For a basic setup, you can proceed directly to review.
Click on the Review + create tab. Azure will validate your configuration.
After validation passes, review the summary of your App Service configuration. If everything looks correct, click the Create button.
6. Deployment and Access
Azure will now begin deploying your App Service. This process usually takes a few minutes.
Once the deployment is complete, you will see a "Deployment succeeded" notification. Click Go to resource to navigate to your newly created App Service overview page.
From the overview page, you can find your App Service URL (e.g., your-app-name.azurewebsites.net
) and begin deploying your application code.
Tip: For more advanced configurations like custom domains, SSL certificates, deployment slots, and continuous deployment, explore the various settings available on the App Service overview page after creation.
Next Steps
Now that you have created your Azure App Service, you can:
- Deploy your application code using various methods like Git, FTP, Zip deploy, or CI/CD pipelines. Refer to our Deploying an App Service guide.
- Configure custom domains and SSL certificates.
- Set up monitoring and diagnostics for your application.
- Explore advanced features like scaling, authentication, and integration with other Azure services.