Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can one create a Virtual Machine in Powershell?



How can one create a Virtual Machine in Powershell?..

Answer / wipro123

VM creation using Powershell:

1) create resource:
New-AzResourceGroup -Name myResourceGroup -Location EastUS

2) create to VM:
New-AzVm `
-ResourceGroupName "myResourceGroup" `
-Name "myVM" `
-Location "East US" `
-VirtualNetworkName "myVnet" `
-SubnetName "mySubnet" `
-SecurityGroupName "myNetworkSecurityGroup" `
-PublicIpAddressName "myPublicIpAddress" `
-OpenPorts 80,3389
3) connect to VM:
Get-AzPublicIpAddress -ResourceGroupName "myResourceGroup" | Select "IpAddress"

4)find out the Public IP:
mstsc /v:publicIpAddress

5) Install IIS:
Install-WindowsFeature -name Web-Server -IncludeManagementTools

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Microsoft Azure Interview Questions

What is file storage ?

0 Answers  


How to migrate the on-premises server to azure using site recovery ?

0 Answers  


Why should you use windows azure storage as opposed to local resources/storage?

0 Answers  


What are the different storage options with Azure?

0 Answers  


Define the Data storage Function in Azure Cloud Service?

0 Answers  


How many customers subscriptions allowed in managed disks?

0 Answers  


Is it possible to create multiple VM's (more than 15) per day. How can you handle it

0 Answers  


what is a service package ?

0 Answers   Microsoft,


What is a web role in windows azure?

0 Answers  


How can you stop a VM using Power Shell?

1 Answers  


What is the concept of the table in Windows Azure?

0 Answers  


What is meant by the DeadLetter queue?

0 Answers  


Categories