Skip to content

Conversation

@stephanvandekruis
Copy link

Got two errors while deploying to Active Directory joined host pool

The first error was :
Unable to process template language expressions for resource '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/XXX/providers/Microsoft.Compute/virtualMachines/XXX-02/extensions/DomainJoin' at line '1' and column '7550'. 'The language expression property 'OUPath' doesn't exist, available properties are 'DomainType, ADOUPath, DomainName, DomainJoinUserName'.' (Code: InvalidTemplate)

After changing the "OUPath": "[[parameters('DomainJoinObject').OUPath]" to "OUPath": "[[parameters('DomainJoinObject').ADOUPath]"

Got the following error

Unable to process template language expressions for resource '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/XXX/providers/Microsoft.Compute/virtualMachines/XXX-02/extensions/DomainJoin' at line '1' and column '7550'. 'The language expression property 'UserName' doesn't exist, available properties are 'DomainType, ADOUPath, DomainName, DomainJoinUserName'.' (Code: InvalidTemplate)

changed "User": "[[format('{0}\{1}', parameters('DomainJoinObject').DomainName, parameters('DomainJoinObject').UserName)]", to "User": "[[format('{0}\{1}', parameters('DomainJoinObject').DomainName, parameters('DomainJoinObject').DomainJoinUserName)]"

Also changed the CodeDeploy.md where TemplateUri should be used instead of TeamplateFile

@stephanvandekruis
Copy link
Author

@microsoft-github-policy-service agree

@WillyMoselhy
Copy link
Contributor

Thanks a lot for your commit. I am working on integrating these changes with the main code ASAP

joshbasquez added a commit to joshbasquez/AVDSessionHostReplacer that referenced this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants