{"action":"opened","issue":{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/2272","repository_url":"https://api.github.com/repos/Azure/azure-quickstart-templates","labels_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/2272/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/2272/comments","events_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/2272/events","html_url":"https://github.com/Azure/azure-quickstart-templates/issues/2272","id":167574324,"number":2272,"title":"Error with 201-vm-domain-join ","user":{"login":"mrdenny","id":20087938,"avatar_url":"https://avatars.githubusercontent.com/u/20087938?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdenny","html_url":"https://github.com/mrdenny","followers_url":"https://api.github.com/users/mrdenny/followers","following_url":"https://api.github.com/users/mrdenny/following{/other_user}","gists_url":"https://api.github.com/users/mrdenny/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdenny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdenny/subscriptions","organizations_url":"https://api.github.com/users/mrdenny/orgs","repos_url":"https://api.github.com/users/mrdenny/repos","events_url":"https://api.github.com/users/mrdenny/events{/privacy}","received_events_url":"https://api.github.com/users/mrdenny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-26T10:28:15Z","updated_at":"2016-07-26T10:28:15Z","closed_at":null,"body":"[201-vm-domain-join](https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-domain-join)\r\n\r\n### Issue Details\r\nWhen I add this to an existing JSON script (trying to replace DSC) I put the following into the script.\r\n\r\n ```\r\n {\r\n          \"apiVersion\": \"2015-06-15\",\r\n          \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n          \"name\": \"[concat(parameters('virtualMachines_CoreServer_name'),'/joindomain')]\",\r\n          \"location\": \"[parameters('Location')]\",\r\n          \"dependsOn\": [\r\n            \"[concat('Microsoft.Compute/virtualMachines/', parameters('virtualMachines_CoreServer_name'))]\"\r\n          ],\r\n          \"properties\": {\r\n            \"publisher\": \"Microsoft.Compute\",\r\n            \"type\": \"JsonADDomainExtension\",\r\n            \"typeHandlerVersion\": \"1.3\",\r\n            \"autoUpgradeMinorVersion\": true,\r\n            \"settings\": {\r\n              \"Name\": \"domain.local\",\r\n              \"OUPath\": \"CN=Computers,DC=domain,DC=local\",\r\n              \"User\": \"[concat('domain.local\\\\', parameters('defaultUserName'))]\",\r\n              \"Restart\": \"true\",\r\n              \"Options\": \"3\"\r\n            },\r\n            \"protectedsettings\": {\r\n              \"Password\": \"[parameters('defaultPassword')]\"\r\n            }\r\n          }\r\n        }\r\n\r\n```\r\nI get the following in the ADDomainExtension log.\r\n\r\n> 2016-07-26T10:07:14.3726281Z\t[Error]:\tTry join: domain='domain.local', ou='CN=Computers,DC=domain,DC=local', user='username@domain.local', option='NetSetupJoinDomain, NetSetupAcctCreate' (#3:User Specified), errCode='2'.\r\n> 2016-07-26T10:07:29.5929818Z\t[Error]:\tTry join: domain='domain.local', ou='CN=Computers,DC=domain,DC=local', user='username@domain.local', option='NetSetupJoinDomain' (#1:User Specified without NetSetupAcctCreate), errCode='1332'.\r\n\r\nError two is file can't be found. I can't find any information on what error 1332 is.\r\n\r\nIf I attempted to join the VM to the domain manually I am able to do so without issue.  I've tried it using both username formats (domain\\username and username@domain).\r\n\r\nAny idea how to resolve this?"}}
{"actor":{"display_login":"mrdenny"}}