title: customScript extension in Azure VMSS with
body: <p>I used to create an extension as below</p>
  <pre><code>--version 2.0 --publisher Microsoft.Azure.Extensions \
  --settings '{\
  &quot;fileUris&quot;: [&quot;https://$saName.blob.core.windows.net/$scName/agent.sh&quot;],\
  &quot;commandToExecute&quot;: &quot;sh agent.sh&quot;\
  }'
  </code></pre>
  <p>However, recently we have limited the public access of the blob storage so that I can't access in the above way but need to generate a SAS URI and access through that way. So the question is how to put the SAS URI into the fileUris value? It does not work to download the agent.sh like this</p>
  <p><code>https://$saName.blob.core.windows.net/$scName?sp=r&amp;st=2021-12-20T08:50:14Z&amp;se=2099-12-20T16:50:14Z&amp;spr=https&amp;sv=2020-08-04&amp;sr=c&amp;sig=xxxxxxxxxxxxxxxxx/agent.sh</code></p>
  <p>So what should I do?</p>