Showing posts with label Azure. Show all posts
Showing posts with label Azure. Show all posts

Azure Public IP Address Associate and Dissociate# Create, Modify and Delete

Public IP Address -: Public IP addresses allow Internet resources to communicate inbound to Azure resources. Public IP addresses enable Azure resources to communicate to Internet and public-facing Azure services.

Public IP Address -> Login to Azure Portal -> Search for Public IP Address

Click Create

Public IP Address assignment criteria 

Virtual Machine -> We can assign Public IP in both way either Dynamic or Static

VPN Gateway -> Dynamic Public IP Address assignment is possible on Application Gateway.

Below chart for Public IP Address assignment on applications




Click Create Public IP Address 

Select IPv4

Select SKU Type Standard or Basic.


Note -: If you select Basic SKU then you can assign Static or Dynamic Public IP on VMs,  if you select Standard SKU then you can assign Static public IP address.

Below  chart for Basic and Standard SKU 


Select Tier for Regional and Global.

Give name for Public IP Configuration.

Here I am selecting Basic SKU - You will see both Static and Dynamic IP assignment is highlighted 


Give DNS name label -> Always in small letter

An "A record" that starts with the specified label and resolves to this public IP address will be registered with the Azure-provided DNS servers. Example: mylabel.westus.cloudapp.azure.com.


Select Subscription


Select Resource Group

Select location


Click Create


New Public IP "PublicIP_Raju" has created.


How to assign Public IP address to Network interface or loadbalancer

Click on newly created Public IP -> PublicIP_Raju


Click Associate -> 

Select Load balancer or Network Interface from the drop down


Once you select Network Interface you will see a list of the network interface created in the location, select from one of them.


To delete Created  public IP in Azure

Login to Azure Portal

Search for Created public IP

Open created public IP


Click on Dissociate -> Select Yes


Now it is not Associated to any of the network or load balancer

Now it has successfully Deleted 

Thanks




Virtual machine deployment in Azure Using Azure Portal

 Checklist before creating the VM.

1. Start with the network

2. Name the VM

3. Decide the location for the VM

4. Determine the size of the VM

5. Understanding the pricing model

6. Storage for the VM

7. Select an operating system

How to create Virtual machine in Azure using Azure Portal

Login to Azure Portal -> Click Virtual Machine

Click Create

Select Subscription

Resource Group

Virtual Machine Name

Region

Select Operating system and Size -> Price will applicable as per the assigned size

Enter User Name and password



Create Inbound port rule -> If you want to enable RDP port select RDP 3389 port allow.

Click next Disk type -> 

Select the Disk type for OS and LUN for Data disk

Note-: If you are deploying VM using without any storage disk, one temp disk will add default and you can store your data in temp drive but when you will Power Off the VM data will wipe from temp disk

Click Networking

You will see a couple of Subnets inside the Virtual Network-> Select one of them from the list.

I am leaving other options default 

Click Review + Create

Click Create

VM Deployment is in progress.


Now VM Deployment has completed.

Click Connect -> Select RDP Or you can use MSTSC and enter public IP to connect


Download RDP file

Click Connect

Enter User ID and Password



Now you will see OS disk and Temporary Storage D drive


Azure Networking # Azure VNets Create

 Azure VNet

Virtual networks (VNets) are used in Azure to provide private connectivity between Azure Virtual Machines and other Azure services. VMs and services that are part of the same virtual network can access one another. By default, services outside the virtual network cannot connect to services within the virtual network. You can, however, configure the network to allow access to the external service, including your on-premises servers.



Create VNet in Azure using Azure Portal.

Login to Azure portal using your subscription ID

Click Virtual Network.


Click create

Click IP Addresses and Enter IP Address

Click Add Subnet -> Give the subnet Name and range.

Subnet range must be from same IP range

Click Security -> Here I am leaving default; you can change as per your requirement.

Click Tag -> Update the Tag that you want like owner, department

Click Review + Create

Click Create

Now go to Virtual network and you will see newly created VNet.


If you want to create more subnet in VNet_Raju, Open the VNet and click Subnets 

Click Add Subnet and assign CIDR range.



Note -: When you deploy a new VM, you need to select VNet_Raju Network and inside the network you will see multiple Subnets that you have created.

Select the correct required subnet from the list.


ARM Viz Tool # JSON Script Visualize

 ARM Viz Tool -> ARM Viz Tool we use to visualize JSON templates. JSON template is written in script and it’s not so much easy to read all those things before deployment and you are not sure what is going to deploy unless you don’t read all the scripts, for that you can use ARM Viz Tool to convert JSON code into GUI to check main parameters & Variables.


How to convert JSON script into ARM Viz Tool.

Download the JSON template and keep it in the local machine.

Open ARM Viz Tool using below URL.

http://armviz.io/



Click on File -> Open Local Template


Browse the path and open the JSON template.



Once you will open the template in ARM Viz Tool -> you will see screen like below.

Click on MyVMName to see what is written in the JSON script.

Once you click on MyVMName you will see all the computer related parameters.

Similarly, once you click on myVMNIc you will see all the related Parameters.

So, you can review those parameters, Variables and change them. So, no need to read all the JSON script.




VM Deploy using ARM Template # json Template

… …

 Azure Resource Management Template -> ARM we use to make deployment faster and more repeatable.


Benefits of ARM Template.




ARM template takes care of your entire deployment for you, ARM template has a lot of benefits.

They improve consistency of deploying the resources so if you have to deploy the same resources again and again for a similar environment like Development, Quality to test production or testing environment, execute the code it does the deployment for the entire infrastructure stack for you. 

That means all your complex deployment or workout simply by ARM Template in JSON, Administrators are usually bombarded by deployment and multiple infrastructures related activity and it’s quite possible to for-gate to change some parameter on that Virtual machine or edit the property of that storage account.

ARM Template reduces the manual effort and reduces any types of mistakes and human error.


ARM template -:

What is Azure Resource Manager -: Azure Resource Manager allows you to provision your applications using a declarative template. In a single template, you can deploy multiple services along with their dependencies. You use the same template to repeatedly deploy your application during every stage of the application lifecycle.

Microsoft constantly adds new Resource groups into their repository.

ARM Templates will have certain Parameters and Variables.

To list out the template search for Azure QuickStart Templates in Google.


https://azure.microsoft.com/en-in/resources/templates/?cdn=disable 



Deploy VM using ARM template

Use the link below to open the template.

https://azure.microsoft.com/en-us/resources/templates/ 

Search for the VM template that you want to deploy (In my case I am deploying)

Deploy a simple Windows VM with tags

Click on Template Name -: Deploy a simple Windows VM with Tags

During the deployment you need to fill below parameter values.


Click Browse on GitHub -> Click DeploymentTemplate.json file 

In my case I am opening below marked json template.


Click Raw -> Copy all content and paste it notepad++ (In Notepad++ it is readable in proper format)




You can do modification in the template like which version do you want to deploy, what will be subnet mask, VMName



I am changing below two highlighted parameters.


Save this file in .json format


Now Launch PowerShell from windows PowerCli.


 


Login with Azure account to establish connection with Azure Portal.



Once Authentication done run below command

New-AzResourceGroupDeployment -name B2CRG -TemplateUri C:\Users\C5309368\Desktop\DeployeNewVMTemplate.json


Once you hit enter pop up will come to fill value.



Once you update all the parameters VM Deployment will start.


Now login to Azure Portal -> Click on Resource Group -> Deployment




Click to Resource -> Overview and you will see what is created and what is pending.


During the deployment, the first dependency will create. 


Once deployment will complete you will see New VM Inside the Virtual machines.
















Featured Post

HPE MSA 2040 configuration step by step

HPE MSA 2040 configuration Default IP range for HP SAN storage MSA 2040 is 10.0.0.1/2 You need to connect your laptop and storage with...