Beruflich Dokumente
Kultur Dokumente
To get vm details:
Get-AzureRmVm -ResourceGroupName "myResourceGroup" -Name “myVm”
To get vm ip Address:
Get-AzureRmPublicIpAddress -ResourceGroupName "RG_AZR_Sireesha" -Name mypublicIp | Select
IpAddress
Here mypublicIp : ipaddress name given while creating vm
(or)
$vm=Get-AzureRmVM -Name "myVM" -ResourceGroupName RG_AZR_Sireesha | select
-ExpandProperty networkprofile | select -ExpandProperty networkinterfaces | select -ExcludeProperty
id
Connect to Vm:
mstsc /v:<publicIpAddress>
Mstsc /v:40.76.202.208
3) Create NIC .For creating NIC we want subnet Id .for SubnetId we have to go to Vnet
# Get info for the back end subnet:
If one of the Nic sets as Primary then you change by using this cmnd