Security Compliance
How to add FileShare homeDirectory within ARM Template
This KB article explains how to add include the server path (\\SERVER\PATH\) and then add the {samaccountname} variable behind this path within LDAP Attribute homeDirectory in ARM template
First published date
Last published date
Overview
Product section
Resolution
To achieve this, please insert the below within your ARM template:
{
"Name": "homeDirectory",
"Definition": {
"Type": "TextField",
"Label": "homeDirectory",
"Description": "Home Directory",
"Constraints": {
"CreationRule": "\\\\\\\\fileserver\\\\USER\\\\{samaccountname}"
}
}
},
NOTE:
The path in CreationRule must be set this way so every single \ in the UNC must be replaced with \\\\ (four) characters since the value will run through two engines and the \ must be escaped twice that way (so basically you escape the second escape \ so it will reach the second engine).