title: How do I run Azure Cli Script using my local Azure Cli installation
body: <p>First off I feel crazy asking this, sorry if this is a really stupid question. It must be obvious as I have searched everywhere and cannot find an answer!</p>
  
  <p>How I am supposed to run this Azure script to create an Azure Function App?
  <a href="https://docs.microsoft.com/en-us/azure/azure-functions/scripts/functions-cli-create-serverless" rel="noreferrer">https://docs.microsoft.com/en-us/azure/azure-functions/scripts/functions-cli-create-serverless</a></p>
  
  <pre><code>#!/bin/bash
  
  # Function app and storage account names must be unique.
  storageName=mystorageaccount$RANDOM
  functionAppName=myserverlessfunc$RANDOM
  
  # Create a resource group.
  az group create --name myResourceGroup --location westeurope
  
  # Create an Azure storage account in the resource group.
  az storage account create \
    --name $storageName \
    --location westeurope \
    --resource-group myResourceGroup \
    --sku Standard_LRS
  
  # Create a serverless function app in the resource group.
  az functionapp create \
    --name $functionAppName \
    --storage-account $storageName \
    --consumption-plan-location westeurope \
    --resource-group myResourceGroup
  
  Clean up deployment
  </code></pre>
  
  <p>The page gives an example of how to run it using the console in the portal and the page also suggests I can run it locally if install the Azure CLI which I have. I need to run it from my local machine so that it can be automated with parameters.</p>
  
  <p>However this page tells me nothing. </p>
  
  <p>What should the extension of this file be ? .sh?
  What command do I use to call the script from my cli?</p>
  
  <p>I have tried just typing the file name saved as .sh</p>
  
  <p>e.g I have az --help and I can't see anything there either.</p>