Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as PowerShell by rf_ ( 6 years ago )
Connect-AzAccount -Tenant XXXXXXXXXX -Subscription "XXXXXXXXXXXX"

$vnet = Get-AzVirtualNetwork -Name confvnet -ResourceGroupName "resourcegroup-confluence-jira-datacenter"

$Nic = Get-AzNetworkInterface -ResourceGroupName "resourcegroup-confluence-jira-datacenter" -VirtualMachineScaleSetName 'confcluster'

$Nic | Add-AzNetworkInterfaceIpConfig -Name "IPInterlink" -Subnet $vnet.Subnets[1] -PrivateIpAddress 10.0.4.20 -PrivateIpAddressVersion 'IPv4' | Set-AzNetworkInterface

 

Revise this Paste

Your Name: Code Language: