title: ADLS ACL specification not working with Azure cli
body: <p>I'm trying to run the following command to <a href="https://docs.microsoft.com/en-us/cli/azure/dls/fs/access?view=azure-cli-latest#az-dls-fs-access-set" rel="nofollow noreferrer">update the access control list</a> for a file in adls gen 1 and it works fine.</p>
  
  <pre><code>az dls fs access set-entry --account dpreptestfiles --acl-spec user:82095126-2a6c-497e-b3dc-7638515fbc30:-w- --path /
  </code></pre>
  
  <p>However, substituting the objectid with a variable name doesn't work. The following command throws an exception:</p>
  
  <pre><code>$managedIdentityObjectId = "82095126-2a6c-497e-b3dc-7638515fbc30"
  az dls fs access set-entry --account dpreptestfiles --acl-spec user:$managedIdentityObjectId:-w- --path /
  </code></pre>
  
  <p>Here's the exception I get:</p>
  
  <pre><code>The command failed with an unexpected error. Here is the traceback:
  Data-lake REST exception: MODIFYACLENTRIES, .
  Traceback (most recent call last):
    File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-yf22vmg2\knack\knack\cli.py", line 215, in invoke
    File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure\cli\core\commands\__init__.py", line 654, in execute
    File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure\cli\core\commands\__init__.py", line 718, in _run_jobs_serially
    File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure\cli\core\commands\__init__.py", line 711, in _run_job
    File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-yf22vmg2\six\six.py", line 703, in reraise
    File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure\cli\core\commands\__init__.py", line 688, in _run_job
    File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure\cli\core\commands\__init__.py", line 325, in __call__
    File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure\cli\core\__init__.py", line 545, in default_command_handler
    File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure\cli\command_modules\dls\custom.py", line 304, in set_adls_item_acl_entry
    File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-yf22vmg2\azure-datalake-store\azure\datalake\store\core.py", line 509, in modify_acl_entries
    File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-yf22vmg2\azure-datalake-store\azure\datalake\store\core.py", line 459, in _acl_call
    File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-yf22vmg2\azure-datalake-store\azure\datalake\store\lib.py", line 454, in call
    File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-yf22vmg2\azure-datalake-store\azure\datalake\store\lib.py", line 349, in log_response_and_raise
  azure.datalake.store.exceptions.DatalakeRESTException: Data-lake REST exception: MODIFYACLENTRIES, .
  To open an issue, please run: 'az feedback'
  </code></pre>
  
  <p>Please help in resolving this.</p>