Octopus Azure VM extension and private IP addresses

konstantine's Avatar


15 Jul, 2017 03:45 AM

We use Octopus Azure VM extension via an ARM template to provision Tentacles on VMs. VMs don't have Public IP addresses, but they are all on the same Virtual Network and accessible to Octopus Server by their Private IP addresses. Windows Domain not present.

The question is how to configure tentaclePublicHostNameConfiguration and tentacleCustomPublicHostName in ARM Template so that Octopus could connect to Tentacles. Published quickstart example shows how to do it with the Public IP address and the same settings don't work for Private IP. Please advise!

  1. Support Staff 1 Posted by Dean Malone on 17 Jul, 2017 08:44 AM

    Dean Malone's Avatar

    Hi Konstantine,

    Thanks for getting in touch.

    You will need to set PublicHostNameConfiguration to "Custom" and CustomPublicHostName will need to be set to the private IP address for the VM, which is obtained by referencing the Microsoft.Network/networkInterfaces resource in the ARM template. This should be something similar to the following:

    "CustomPublicHostName": "[reference(variables('nic'),'2016-09-01').ipConfigurations[0].properties.privateIPAddress]"

    where variables('nic') is referring to the Microsoft.Network/networkInterfaces resource.

    Hope this helps!


  2. 2 Posted by konstantine on 17 Jul, 2017 02:41 PM

    konstantine's Avatar

    Dean, this answers my question completely and verified works. Thanks a lot!

  3. konstantine closed this discussion on 17 Jul, 2017 02:41 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac