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

Setting up your local environment for Azure development

You need to set up and configure the development environment for building your applications in .NET and Azure. In this section, you will configure Visual Studio Code (VS Code) and Visual Studio. Visual Studio Code is an open source editor for building ASP.NET Core and C# applications.

Installing Visual Studio Code

Follow these steps to install Visual Studio Code:

  1. Visit the Microsoft site to download Visual Studio Code: https://visualstudio.microsoft.com/downloads/
Figure 1.34 – Visual Studio/VS Code download page

Figure 1.34 – Visual Studio/VS Code download page

  1. Based on your development machine’s operating system, download the applicable VS Code executable.

Figure 1.35 – VS Code – download page

Figure 1.35 – VS Code – download page

  1. Accept the terms and conditions and continue with the installation:
Figure 1.36 – VS Code Editor

Figure 1.36 – VS Code Editor

  1. Unlike on Windows and Mac, installing VS Code on Linux is easy – we just need to run the following command: sudo snap install --classic code. This will install VS Code on Linux. For more information on the VS Code installation, check out this page: https://code.visualstudio.com/docs/setup/linux.
  2. Click on Extensions or press the Ctrl + Shift + X shortcut keys on Windows or Cmd + Shift + X on Mac and install the following extensions:
    • Azure Tools
    • Azure CLI Tools
    • Azure Pipelines
    • Azure Kubernetes Service
    • Azure Storage Explorer
    • C# Extension

Installing Visual Studio Community 2022

Follow these steps to install Visual Studio Community Edition 2022:

  1. Visit the Microsoft site to download Visual Studio: https://visualstudio.microsoft.com/downloads/
Figure 1.37 – Visual Studio download page

Figure 1.37 – Visual Studio download page

  1. Install Azure Development and the accompanying packages for .NET development; the Visual Studio setup will prompt for different installation configurations or workloads.

Figure 1.38 – Visual Studio – installation configuration

Figure 1.38 – Visual Studio – installation configuration

  1. Sign in to the cloud account you previously created to access the Azure resources within your IDE.
Figure 1.39 – Visual Studio – first screen

Figure 1.39 – Visual Studio – first screen

In this section, you learned about installing and configuring your development environment. VS Code is a cross-platform editor for debugging applications and Visual Studio is a fully featured IDE for building and debugging applications.

Now is the time to create our first project!

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