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
Microsoft Azure Architect Technologies: Exam Guide AZ-300

You're reading from   Microsoft Azure Architect Technologies: Exam Guide AZ-300 A guide to preparing for the AZ-300 Microsoft Azure Architect Technologies certification exam

Arrow left icon
Product type Paperback
Published in Jan 2020
Publisher Packt
ISBN-13 9781838553531
Length 540 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Sjoukje Zaal Sjoukje Zaal
Author Profile Icon Sjoukje Zaal
Sjoukje Zaal
Sjoukje Zaal Sjoukje Zaal
Author Profile Icon Sjoukje Zaal
Sjoukje Zaal
Arrow right icon
View More author details
Toc

Table of Contents (30) Chapters Close

Preface 1. Section 1: Deploying and Configuring Infrastructure
2. Analyzing Resource Utilization and Consumption FREE CHAPTER 3. Creating and Configuring Storage Accounts 4. Implementing and Managing Virtual Machines 5. Implementing and Managing Virtual Networking 6. Creating Connectivity between Virtual Networks 7. Managing Azure Active Directory (Azure AD) 8. Implementing and Managing Hybrid Identities 9. Section 2: Implementing Workloads and Security
10. Migrating Servers to Azure 11. Configuring Serverless Computing 12. Implementing Application Load Balancing 13. Integrating On-Premises Networks with Azure Virtual Network 14. Managing Role-Based Access Control (RBAC) 15. Implementing Multi-Factor Authentication (MFA) 16. Section 3: Creating and Deploying Apps
17. Creating Web Apps by Using PaaS 18. Designing and Developing Apps That Run in Containers 19. Section 4: Implementing Authentication and Secure Data
20. Implementing Authentication 21. Implementing Secure Data Solutions 22. Section 5: Developing for the Cloud and for Azure Storage
23. Developing Solutions That Use Cosmos DB Storage 24. Developing Solutions That Use a Relational Database 25. Message-Based Integration Architecture and Autoscaling 26. Mock Questions
27. Mock Answers
28. Assessments 29. Another Book You May Enjoy

Creating, reading, updating, and deleting data tables by using code

In this demonstration, we are going to create the sample application. For this, we are going to create a new console application in Visual Studio 2019. We will first connect to our Azure SQL Database account.

Connecting to the Azure SQL database

  1. Open Visual Studio, and create a new console app (.NET) project.
  2. Name the project PacktSQLApp.
  3. Right-click on your project in the Solution Explorer, and select Manage NuGet Packages.
  4. Select Browse, search for System.Data.SqlClient, and install the package.
  5. Open Program.cs, and replace the references with the following:
using System;
using System.Data.SqlClient;
  1. Add the following variable in the Program.cs method:
static string connectionstring;
  1. Now, go back to the Azure portal. Navigate to the Azure SQL database that we created in the previous section. Under Settings, select Connection strings. Copy the connection string, as follows:
SQL database connection string
  1. Below...
lock icon The rest of the chapter is locked
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