Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
A Developer's Guide to .NET in Azure

You're reading from   A Developer's Guide to .NET in Azure Build quick, scalable cloud-native applications and microservices with .NET 6.0 and Azure

Arrow left icon
Product type Paperback
Published in Oct 2023
Publisher Packt
ISBN-13 9781837633012
Length 504 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Tamir Al Balkhi Tamir Al Balkhi
Author Profile Icon Tamir Al Balkhi
Tamir Al Balkhi
Anuraj Parameswaran Anuraj Parameswaran
Author Profile Icon Anuraj Parameswaran
Anuraj Parameswaran
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part 1: An Introduction to Your Environment
2. Chapter 1: Setting Up Your Development Environment FREE CHAPTER 3. Part 2: Serverless and Microservices
4. Chapter 2: Creating Docker Containers on Azure 5. Chapter 3: Building Resilient Applications with Dapr 6. Chapter 4: Designing Microservices with AKS and Containers in Azure 7. Chapter 5: Building Serverless Apps with Azure Functions and Container Apps 8. Part 3: Data and Storage
9. Chapter 6: Exploring Azure Blob Storage 10. Chapter 7: Creating an Azure SQL Database 11. Chapter 8: Creating Documents via .NET for Azure Cosmos DB 12. Part 4: Messaging Mechanisms and Security
13. Chapter 9: Utilizing Azure App Configuration 14. Chapter 10: Processing Data with Azure Event Hubs 15. Chapter 11: Designing Ready-Made Solutions with Azure Service Bus 16. Chapter 12: Enhancing Data Protection with Azure Key Vault 17. Chapter 13: Managing Access with Azure Active Directory B2C 18. Index 19. Other Books You May Enjoy

Creating your first project

After installing all of the prerequisite software listed in step 2, under the Installing Visual Studio Community 2022 section, you should be able to begin building them without the need for any extra settings. To get things going, we’ll write a straightforward function that we’ll attempt to execute to make sure everything is set up and prepared. Start up Visual Studio 2022 Community Edition and select Create a new project to get started.

Figure 1.40 – Visual Studio – welcome screen

Figure 1.40 – Visual Studio – welcome screen

Now you can select an Azure Function from the list of choices and follow the steps to get started with the project. On the first screen, configure your new project screen. We need to set the project name, project location, and solution name. On the Additional information screen, we need to configure the framework, function trigger, and authorization level. Please see the following configuration values:

Figure 1.41 – Visual Studio – creating an Azure Functions app

Figure 1.41 – Visual Studio – creating an Azure Functions app

Project Name: FunctionApp1

Project Location: C:\USER\PROJECTFOLDER

Solution Name: FunctionApp1

Functions Worker: .NET 6.0

Function: http trigger

Authorization Level: Function

After you click the OK button, you should see a screen similar to the following screenshot (see Figure 1.42). This indicates that a new function file has been created, and some standard code has already been added as a starting point. We will discuss how to create a function and its properties in the chapter of this book specifically related to Azure Functions (Chapter 5). For now, we won’t go into too much detail.

Figure 1.42 – Azure Functions project in Visual Studio

Figure 1.42 – Azure Functions project in Visual Studio

This is how, we can create an Azure Function using Visual Studio. We can other project types such as ASP.NET Core MVC, Blazor, and ASP.NET Core Web APIs. We will explore other project types in the upcoming chapters. Visual Studio will also help us to debug, deploy, and monitor the applications in Azure.

You have been reading a chapter from
A Developer's Guide to .NET in Azure
Published in: Oct 2023
Publisher: Packt
ISBN-13: 9781837633012
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image