AZ-104 Microsoft Azure Administrator Exam
You're a great admin... on-prem. Now, become a great admin in the cloud and prove it by passing the Microsoft Certified: Azure Administrator Associate exam!
Practice Test

Practice Test

Create an App Service
Deploy and Configure an Azure App Service
Create an App Service
Azure App Service is a platform-as-a-service (PaaS) solution where you can easily create web and mobile apps that work on any platform or device. To start with, you need to know the steps for creating an app. Here's a simple breakdown:
- Create a Resource: In the Azure portal, you select Create a resource, go to Web + Mobile, and choose Web App.
- Select a Subscription: Decide which subscription you'll use for the app creation.
- Resource Group: Either name a new resource group or choose an existing one.
- App Name: This should be a unique name for your web app.
- Publish, Runtime Stack, and OS: Pick the options that best fit your app's needs.
- Region: Select a region or existing App Service Environment for better performance.
- App Service Plan: Choose or create an App Service Plan that includes size and pricing tiers.
To get everything set up correctly, all these details are important so your app can run smoothly on Azure.
Configure App Settings
App settings in Azure App Service are like environment variables given to your app's code to help it run properly. You can set these up through several tools like the Azure portal, Azure CLI, or Azure PowerShell. Here are the things you need to keep in mind:
- Use the right Naming Conventions, allowing letters, numbers, periods, and underscores in app setting names.
- When dealing with Special Characters, always escape them properly according to the OS your app runs on.
- For Linux apps and custom containers, you handle settings with the
--env
flag, making it behave correctly in these systems. - All encryption happens automatically at rest to keep sensitive information secure.
Each of these parts plays a crucial role in ensuring that your app gets the correct information it needs to function efficiently.
Deployment Methods
Deploying code to Azure App Service is flexible because there are many methods you can use:
- FTP: Uploading files straight to the app's file system is a quick way to get started.
- Git: This option uses Git repositories for both version control and deploying code changes easily.
- Azure DevOps: It’s great for continuous integration and deployment, streamlining your dev process.
Each method has its advantages, so it's about finding what best suits your project's needs and workflows.
Manage Application Performance and Scaling
Handling more users or workloads means you have to scale your app. Here's how Azure App Service does it:
- Adjust the App Service Plan to add power as needed; remember this affects all apps within that plan.
- Extra Infrastructure is automatically provided when you scale up, but it might take some time.
- Be patient with any potential Time Delay as new resources are added to accommodate your app's growing demands.
This careful management ensures that apps stay fast and responsive, even when traffic spikes occur.
Best Practices
Staying efficient and secure with your app's setup involves following some key best practices:
- Use Microsoft Entra ID for OAuth 2.0 authentication; it's secure and reliable.
- Implement role-based access control (RBAC) to apply the principle of least privilege, which enhances security by limiting access only to required individuals.
- Employ Azure Key Vault for protecting sensitive data like cryptographic keys and secrets, keeping them safe from unauthorized access.
Following these guidelines helps ensure that your applications not only perform well but remain secure as they scale and evolve over time.
Conclusion
Creating an Azure App Service involves understanding a few crucial steps like setting up the app, configuring the environment settings, deploying your code, and ensuring scalability. By having a clear plan for deployment methods and using best practices in security, you optimize both performance and reliability. These elements collectively enable you to build powerful cloud-based applications effectively with Azure's robust platform.