Wowza Community

Azure Image - Setup Varibles (Host is now incorrect)

We just deployed a few new Azure IaaS instances of Wowza 4.3.0 using the Marketplace image via the new portal which uses Resource Manager. When Wowza server starts it uses instance specific variables which are set at some point when the VM instance is created. One of these for example is: PLATFORM_METADATA_HOSTNAME. Which in this case will be the Azure VM instance name. Traditionally the DNS resolution for the instance would be [vm name].cloudapp.net. Which is used in the com.wowza.cloud.platform.install.Installer process for Wowza’s startup configuration.

The problem is Azure is now using regional hosts vs. cloudapp.net which is throwing an error in the wowzastreamingengine_startup process (which is reflected in the same named log).

594 [main] INFO com.wowza.cloud.platform.install.Installer - Installer.queryEnvironmentWindows error with DNS name: java.net.UnknownHostException: [vm name].cloudapp.net

In this case the host is: [vm mane].eastasia.cloudapp.azure.com

I’m guessing that “cloudapp.net” might be hard coded. Is there a way to change the default host? Or for that matter change any of these VM instance specific information. We often create our own custom configured image per region and then use this for image for deployment. It would be great to know how these are vars are set/stored

BTW: We opened a ticket on this issue as well: 155671

Hello,

As mentioned in the ticket, this is a known issue. We are currently working on a way to update these variables automatically using the Azure platform.

In the meantime, you may be able to correct the hostname resolution issues by adding an entry in the hosts file that points the [vm name].cloudapp.net to the external IP address of the instance.

Best regards,

Andrew