VM: Azure adding secondary StaticIP to existing VM - azure

Is it possible to associate a secondary Static IP address to an existing Azure VM on the same nic? How could this be done?
(Windows Server 2016 VM)

I found the answer on how to add a second IP to the same NIC card on an existing VM on Azure but you must install components through the powershell and then manually configure the NIC inside the windows VM environment.
Full Article here, credit to Pierre Roman
https://blogs.technet.microsoft.com/canitpro/2017/03/15/step-by-step-setup-multiple-public-ips-on-a-vm-in-azure/

Related

Access Virtual Appliance through ip, running on vm inside Hyper-v on top of a vm from Azure

I have a Vm from Azure and in that vm I have another vm running in Hyper-v. That vm in Hyper-v is running a Ubuntu Linux (64 bit) guest operating system, with a virtual appliance. When I run it and it is finished booting, I'm given a IP address like this: "https://10.8.40.104/4442". The problem is I'm not able to access it from inside my 1 vm from Azure. I tried pulling up the browser and pasting the address, but nothing. I am quite new at this so its possible the solution is fairly simple.
Anyone have any idea how I can access that static IP address?
To install Hyper-V in Azure Nested Virtualization, you could follow steps in this blog:
There are (7) short steps that need to be completed to provision a
nested virtual machine inside Microsoft Azure:
Create an Azure VM capable of nesting (Windows Server 2016, etc)
Connect to the Azure VM
Install Hyper-V Feature inside the Azure VM
Create a NAT’ed vSwitch for outside connectivity
Create the guest virtual machine
Configure an IP Address on the nested guest virtual machine
Test Connectivity
For allowing connectivity to the nested virtual machine from outside, you need to create a new virtual switch that will be configured for NAT’ed access. The network flow will be like this: outside---host public IP---host private IP---NAT internal switch---Internal gateway---nested VM private IP.
Feel free to let me know if this helps or need further help.

Azure ReservedIP Bad Request on old Windows VM isntance

I am using Azure Powershell cmdlets to reserve the current IP of my running Windows VM instance. To test it, I created a new VM, ran it up, then ran New-AzureReservedIP with the -ServiceName tack so it knows reserve teh current IP. It worked a charm! I shut down the machine and it reallocaed the same IP address on startup.
Now if I do the exact same thing on an actual production Windows VM I get the below error. Could it be that this machine has been running for about 3 years and is not supported for some reason? Syntax is correct as my initial test and in the same location etc..
BadRequest : Cannot reserve the ip of deployment xxxxxxxx
Has anyone else had this problem?
If this cloud service is 3 years old it is quite possible that you are using an affinity-group VNET to host the VM. It is not possible to reserve an IP address from such a VNET. The following is documented:
Reserved IPs are only supported in regional VNets. It is not supported for VNets that are associated with affinity groups. For more information about associating a VNet with a region or an affinity group, see [About Regional VNets and Affinity Groups][2].

Azure vm quick-start isn't linking the created IP address to the vm

When I use the vm quick-start to spin up a new Linux vm, it shows the public ip address being provisioned however it is not linked to the vm itself. If I go into the portal, I can see that the VM and IP exist, but must manually allow the IP to link to the VM. Why is this happening?
It turns out the 0.9.15 CLI version had this as a known bug. 0.9.16 and forward have fixed this issue, if you see the same one update the CLI and you should be good.

How do I add a website to a virtual network in Windows Azure?

Scenario:
I have a website on Windows Azure. That website needs to connect to a (new) Azure VM.
I have done the following:
Created new Virtual Network on Azure
Added the VM to the Virtual Network, and it does get an IP in the virtual network.
I have configured the appropiate Endpoint for the VM (Public/Private port).
Now, how do I "connect" the Azure website to the same virtual network, such that my .NET code in the website can create a TCP connection to the VM on it's IP on the Virtual Network ?
This is now possible. Be sure to use the NEW Azure Portal. For details, check out:
http://azure.microsoft.com/blog/2014/09/15/azure-websites-virtual-network-integration/
Currently you cannot connect/add Azure Web Site to a Virtual Network. You can only add VMs and Cloud Services to a Virtual Network. However this is a demanded feature and I believe we will see it in the future releases of the Web Sites service (my speculation).
The key here is to create the Virtual Network before the Virtual Machine and then place the VM in the VN during it's creation. The article here gives instructions moving a VM into a VN.
http://blogs.msdn.com/b/walterm/archive/2013/05/29/moving-a-virtual-machine-from-one-virtual-network-to-another.aspx

How to force ip change on a Windows Azure Virtual machine?

I'd like to know how to force an IP change on a Windows Azure machine? Calling ipconfig -renew seems not to be working.
You'll get a new IP after you shutdown your machine.
E.g. click on shutdown in the portal and you should see this message:
If you continue, the IP addresses that were assigned to this virtual machine will be released. Are you sure you want to shut down virtual machine [name]?
First of all you really don't have any requirement to change IP address of any Windows Azure Virtual Machine. I will try explaining more on Windows Azure IP address details.
Windows Azure Machine(s) have a fixed IP address which is internal and Windows Azure Service have virtual IP address which is publicly faced. The internal IP address is specific to each virtual machine (Cloud Service Instance or Virtual Machine Instance) which is assigned when the VM Instance is configured and stay the same during the life of Virtual Machine instance.
With Windows Azure Cloud Service Instance (PaaS) you don't have any control over Virtual Machine IP address. However if you creating Windows Azure Virtual Machine (IaaS) you can use Windows Azure Virtual Network to put together all the virtual machines within a IP Address/Subnet group as described here. This may or may not be your requirement however this is one way in IaaS VM, you can put together a VM with your virtual network.
Delete the deployment or cloud service, wait about 10 minuets and re-create. This will assignee a new PUBLIC IP address to the new cloud service.
Powershell way
if you use Resource Manager:
Get-AzureRmVM | Stop-AzureRmVM -Force
Get-AzureRmVM | Start-AzureRmVM
or for classic VM:
Get-AzureVM | Stop-AzureVM -Force
Get-AzureVM | Start-AzureVM
Follow the instructions at https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-reserved-private-ip/
you need to restart the server

Resources