Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Microsoft Azure Storage

You're reading from  Learning Microsoft Azure Storage

Product type Book
Published in Nov 2017
Publisher Packt
ISBN-13 9781785884917
Pages 276 pages
Edition 1st Edition
Languages
Author (1):
Mohamed Waly Mohamed Waly

Table of Contents (9) Chapters

Preface 1. Understanding Azure Storage 101 2. Delving into Azure Storage 3. Azure Storage for VMs 4. Implementing Azure SQL Databases 5. Beyond Azure SQL Database Management 6. Azure Backup 7. Azure Site Recovery 8. Extending Your Azure Storage Management

Automating the tasks

As usual, at the end of each chapter, we get our hands dirty with automation.

Creating an Azure SQL Database using PowerShell

First off, you will have to create the SQL Server on which the database will be built, and since the SQL Server needs an admin name and a password, they will be created and stored in variables:

$SQLAdmin = “SQL Admin User Name”
$Password = “SQL Admin Password”

Then, you can work on creating the SQL Server with the following cmdlets:

New-AzureRmSqlServer -ResourceGroupName PacktPub -ServerName packtpubsqlps -Location WestEurope -SqlAdministratorCredentials $(New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $SQLAdmin,$(ConvertTo...
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 €14.99/month. Cancel anytime}