Azure DSC Invalid Command

Hi -

I am unable to get the OctopusDSC to work installing a tentacle. I keep getting invalid command with the API key. Appreciate it if anyone has an ideas?

Thanks,
John

Error:
VERBOSE: [2015-06-08T12:07:37] [JMSAPP02]: [[cTentacleAgent]OctopusTentacle] Registering with
arguments: register-with --instance Tentacle --server URL --name hostname --publicHostName --apiKey
API-12345678 --comms-style TentaclePassive --force --console --environment Dev --role web
VERBOSE: [2015-06-08T12:07:37] [JMSAPP02]: [[cTentacleAgent]OctopusTentacle] Octopus Deploy:
Tentacle version 2.6.5.1010
VERBOSE: [2015-06-08T12:07:38] [JMSAPP02]: [[cTentacleAgent]OctopusTentacle]

VERBOSE: [2015-06-08T12:07:38] [JMSAPP02]: [[cTentacleAgent]OctopusTentacle] Error: Unrecognized
command line arguments: AP-12345678

DSC:
cTentacleAgent OctopusTentacle {
Ensure = “Present”;
State = “Started”;
Name = “Tentacle”;
ApiKey = “API-12345678”;
OctopusServerUrl = “URL”;
Environments = @(“Dev”);
Roles = @(“web”);
ListenPort = "10933"
DefaultApplicationDirectory = “c:\Applications”
}

Hi John,

Thanks for the question. Just looking at the arguments passed to tentacle, publicHostName has no value:
register-with --instance Tentacle --server URL --name hostname –publicHostName --apiKey API-12345678 --comms-style TentaclePassive --force --console --environment Dev --role web

From the script it looks like that value should be the machine’s public ip address. Maybe that machine doesn’t have a public ip or there was a problem getting it?

Cheers,
Shane