22

Azure provisioning at your control

Embed Size (px)

Citation preview

Govind Kanshi (@govindk)

MTC, Technical Director

Hemant Kathuria

Consultant, MCS

Agenda

Background

SQL - AStorage

AccountVirtualMachine

My App

[SQL CONFIG] VM (2x)

DEPENDS ON STORAGE ACCOUNT

Microsoft Azure Management Options Manage.WindowsAzure.Com / Portal.Azure.Com PowerShell, x-plat cli or lang specific libraries Microsoft Azure Management Libraries Rest API Azure Automation Chef, Puppet, Ansible, System Center

Provisioning/Management

REST

PowerShell MAML

Chef/Puppet/Ansible System Center Automation

Portal

Custom Portal

Azure Portal

Accessible at https://manage.windowsazure.com/

Default option to Manage Azure Resources

Requires Subscription Details to login

Azure PowerShell Azure PowerShell is a module that provides

cmdlets to manage Azure through Windows PowerShell

Allows to perform variety of tasks in Azure, either interactively at a command prompt or automatically through scripts

Available as a downloadable and the source code is managed through a publicly available repository.

Cmdlets is an another option to perform the same tasks that you can perform through Azure Management Portal

Azure PowerShell - Demo

Get-Subscription

Get Storage Account

Create Storage Account

Create Cloud Service

Get Cloud Service

QuickCreate-VM

Some Challenges

Subscription details are required to access portal

Need to embed provisioning capabilities in existing systems

Need to introduce approval processes before provisioning cloud assets

Need to make sure custom provisioning solutions are highly testable

Microsoft Azure Management Libraries (MAML)

Collection of REST wrapper .Net assemblies to offer service automation and management capabilities to Azure developers.

Shipped via NuGet

The .NET libraries are fully async/await and are open source on GitHub.

MAML has been powering the Azure PowerShell experience since October 2013's v0.7.0 release.

Modern and minimal package dependencies

Built on top of popular libraries like HttpClient and Json.NET

Microsoft Azure Management Libraries

.Net Class Name Supports Operations for these Assets (and potentially more)

ManagementClient Locations Credentials Subscriptions Certificates

ComputeManagementClient Hosted Services Deployments Virtual Machines Virtual Machine Images & Disks

StorageManagementClient Storage Accounts

WebSiteManagementClient Web Sites Web Site Publish Profiles Usage Metrics Repositories

VirtualNetworkManagementClient Networks Gateways

MAML – DEMO

Create Cloud Service Create Storage Account Create Virtual Machine

• Domain Join• Registering Custom Script Extensions• Setting up end points for PowerShell and Remote Desktop

Current Challenges

Deploy or update a group of resources, repeatedly Visualize group of resources in a logical view, including monitoring / billing Manage permissions on a group of resources for specific folks

Road Ahead – Azure Resource Manager

SQL - AStorage

AccountVirtualMachine

My App

[SQL CONFIG] VM (2x)

DEPENDS ON STORAGE ACCOUNT

Azure Templates can :

• Ensure Idempotency

• Simplify Orchestration

• Simplify Roll-back

• Provide Cross-Resource Configuration and

Update Support

Azure Templates are :

• Source file, can be checked-in

• Specifies resources and dependencies (VMs,

Web Sites, DBs) and connections (Config, LB

sets)

• Support parametrized input/output

Azure Resource Manager - Demo

Create Web Site and SQL Quick look at already created assets and event manager PowerShell Scenarios No support to create empty resource group. (Only through PS)

REST API Usage

Register Native App in Azure AD

Obtain Auth token from Azure AD

Build Request

Set API version

Set Params and json values

** Show using Postman if time is available.

Azure Automation

Repeatable “jobs”

Conclusion

• Use MAML for max customization

• Use RM going forward (in PS and MAML)

• Use REST-Endpoint – debugging

• Use Automation – for automation

• Use Chef/Puppet/DSC – for deployment description

• Wait for RM providers for VM/Network

Resources

• http://blogs.msdn.com/b/rmattsampson/archive/2014/08/19/azure-resource-manager-tools-for-visual-studio.aspx

• https://msdn.microsoft.com/en-us/library/azure/hh264518.aspx

• https://msdn.microsoft.com/en-us/library/azure/dn790568.aspx

• https://msdn.microsoft.com/en-us/library/azure/dn578292.aspx

Tell us what you think

Help us shape future events by sharing your valuable feedback.

Scan the QR code to evaluate

this session.

< QR Code will be given 2 days before

the Conference >

Thank you

Twitter: <@govindk>

Email:<[email protected]>

Follow us online