Professional Documents
Culture Documents
1202 m3 Slides v1 CMM Fl3qyz2
1202 m3 Slides v1 CMM Fl3qyz2
• Please log in 10 mins before the class starts and check your internet connection to avoid any network issues during the LIVE
session
• All participants will be on mute, by default, to avoid any background noise. However, you will be unmuted by instructor if
required. Please use the “Questions” tab on your webinar tool to interact with the instructor at any point during the class
• Feel free to ask and answer questions to make your learning interactive. Instructor will address your queries at the end of on-
going topic
• We have dedicated support team to assist all your queries. You can reach us anytime at: support@edureka.co
• Your feedback is very much appreciated. Please share feedback after each class, which will help us enhance your learning
experience
01. Managing Azure Subscriptions And 11. Implementing And Managing Hybrid
Resource Groups Identities
03. Overview Of Azure Virtual Machines 09. Monitoring And Access Management
For Cloud Resources
2 4
It provides flexibility of
Azure VM offers a variety of VM
virtualization without having to
Virtual Machine sizes and compatibility with
buy and maintain the physical
Hyper-V fixed-size VHDs
hardware that runs it
Related resources that the VM needs Operating system that the VM runs
DSv2, Dv2, DS, D, Av2, A0- Development of test servers code repositories and most
General purpose Balanced CPU-to-memory ratio
7 applications
Disk Type Solid State Drives (SSD) Hard Disk Drives (HDD)
Dev/Test, non-critical,
Scenario Production and performance sensitive workloads
Infrequent access
Unmanaged Disks: 1 GB – 1 TB
Managed Disks:
P10: 128 GB S4: 32 GB
Disk Size P20: 512 GB S6: 64 GB
P30: 1024 GB S10: 128 GB
S20: 512 GB
S30: 1024 GB
Method Description
Classic Model
Azure Resource
Manager
11. Type the username and enter the password you created
for the VM > then click OK to create the connection
Note: Refer to Module-3 Demo2 Document on LMS for all the steps in detail
Provisions
▪ The API passes requests to the Resource Manager
Resources Virtual Machine
service, which authenticates and authorizes the
requests
Contained In
Resource Group
What is ARM With Resource Manager, you can create a template (in JSON format) that defines the infrastructure and
template ? configuration of your Azure solution.
Why use ARM By using a template, you can repeatedly deploy your solution throughout its lifecycle and have confidence your
template ? resources are deployed in a consistent state.
When you create a solution from the portal, the solution automatically includes a deployment template. You do
How ARM will
not have to create your template from scratch because you can start with the template for your solution and
be created ?
customize it to meet your specific needs.
You can retrieve a template for an existing resource group by either exporting the current state of the resource
How to use
group, or viewing the template used for a particular deployment and viewing the exported template is a helpful
ARM template ?
way to learn about the template syntax.
Template format:
Note: Refer to Module-3 Demo3 Document on LMS for all the steps in detail
They can be used for preloading applications, and bootstrapping other OS configurations
To create an image of a virtual machine, you need to perform the following steps:
➢ Deallocate the VM
01 Connect to the VM
02 Open the Command Prompt window as administrator and change the directory to %windir%\system32\sysprep
03 Run sysprep.exe
➢ Deallocate the VM
04 In the System Preparation Tool dialog box, select Enter System Out-of-Box Experience (OOBE), and check Generalize
06 When Sysprep completes, it shuts down the virtual machine. Do not restart the VM
➢ Deallocate the VM
➢ Deallocate the VM
Example
New-AzureRmVm `
-ResourceGroupName "myResourceGroup" `
-Name "myVMfromImage" `
-ImageName "myImage" `
-Location "East US" `
-VirtualNetworkName "myImageVnet" `
-SubnetName "myImageSubnet" `
-SecurityGroupName "myImageNSG" `
-PublicIpAddressName "myImagePIP" `
-OpenPorts 3389
Delete an image
Remove-AzureRmImage `
-ImageName myImage `
-ResourceGroupName myResourceGroup
A VM snapshot is a copy of the virtual machine's disk file at a given point in time
Any data that was writable on a VM becomes read-only when the snapshot is taken
The snapshot file cannot exceed the size of the original disk file, and it requires
some overhead disk space
Click on Create
$rgName = "myResourceGroup"
$snapshot = Get-AzureRmSnapshot `
$location = "EastUS"
–ResourceGroupName $rgName `
$snapshotName = "mySnapshot"
-SnapshotName $snapshotName
$imageName = "myImage"
$rgName = "myResourceGroup"
$snapshot = Get-AzureRmSnapshot `
$location = "EastUS"
–ResourceGroupName $rgName `
$snapshotName = "mySnapshot"
-SnapshotName $snapshotName
$imageName = "myImage"
$rgName = "myResourceGroup"
$snapshot = Get-AzureRmSnapshot `
$location = "EastUS"
–ResourceGroupName $rgName `
$snapshotName = "mySnapshot"
-SnapshotName $snapshotName
$imageName = "myImage"
$rgName = "myResourceGroup"
$snapshot = Get-AzureRmSnapshot `
$location = "EastUS"
–ResourceGroupName $rgName `
$snapshotName = "mySnapshot"
-SnapshotName $snapshotName
$imageName = "myImage"
Unlike Windows and Linux VM creation, for creating a Linux VM you need to specify
an SSH public key for authentication instead of regular Username and Password
When you use an SSH client to connect to your Linux VM, the remote VM tests the
client to make sure it has the private key, and then grants access to the VM
Note: Refer to Module-3 Demo4 Document on LMS for all the steps in detail
Note: Refer to Module-3 Demo5 Document on LMS for all the steps in detail
To interact with the Azure VM extension, you must use either the
Azure portal or the Azure PowerShell SDK
▪ Configuration can be performed using tools and extensions on cloud, such as:
– PowerShell DSC
– Custom Script Extension
– Azure Automation
– Puppet
– Chef, etc.
DSC provides a set of Windows PowerShell language extensions, cmdlets, and resources that
can be used to declaratively specify your software environment configuration
05
Check the Implementation
$resourceGroup = 'Edu533rg'
$location = 'WestIndia'
$vmName = 'EdurekaDSCvm'
$storageName = 'edudscteststorage'
The .zip file created by this cmdlet has the .ps1 configuration script at the root of the
archive folder. Resources have the module folder placed in the archive folder
The Custom Script Extension downloads and executes scripts on Azure VMs
Useful for post deployment configuration, software installation, or any other configuration / management task
Scripts can be downloaded from Azure Storage or GitHub, or provided to the Azure portal at extension run time
Integrates with ARM templates, and can be run using the Azure CLI, PowerShell, Portal, or Azure VM REST API
Publish-AzureRmVMDscConfiguration –
Takes in a configuration file. Set-AzureRmVMCustomScriptExtension –
Scans it for dependent DSC resources. Creates an Extension which runs a Configuration
Creates a .zip file containing the configuration and Script present in a User Storage and Adds it directly to
DSC resources. a specified VM in the cmdlet.
Publishes it to an Azure Blob storage.
Set-AzureRmVMDscExtension –
Injects the settings needed by the PowerShell DSC
extension into a VM configuration object.
The Custom Script Extension for Windows can be run against Windows 10 Client,
Operating System
Windows Server 2008 R2, 2012, 2012 R2, and 2016 releases
The script needs to be stored in Azure Blob storage, or any other location accessible
Script Location
through a valid URL
The Custom Script Extension for Windows requires that the target virtual machine is
Internet Connectivity
connected to the internet
Template format: