title: The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program
body: <p>Created Powershell Azure function and trying to use "az" commands under that function app. As per <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-powershell#dependency-management" rel="noreferrer">docs</a>, function runtime should resolve "az" and other module dependencies. but it doesn't work for me.</p>
  
  <blockquote>
    <p>ERROR: The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    Microsoft.Azure.WebJobs.Script.Rpc.RpcException : Result: ERROR: The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program.</p>
  </blockquote>
  
  <p>I want to run some "az" command under function app without manually uploading modules. Is it powershell Preview version issue or something I need to correct?</p>
  
  <p><strong>requirement.psd1</strong></p>
  
  <pre><code>@{
  Az = '2.*'
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/mVPbo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mVPbo.png" alt="enter image description here"></a></p>