title: Get the "PRIMARY STATIC WEBSITE ENDPOINT" from Azure PowerShell
body: <p>In the <a href="https://portal.azure.com" rel="nofollow noreferrer">Azure Portal</a> I can look up a Storage Account and go to the Settings/Properties section and see the list of properties which contains <code>PRIMARY STATIC WEBSITE ENDPOINT</code>. Alternatively I can see the same information in the Settings/Static Website section marked as <code>Primary endpoint</code></p>
  
  <p>How do I get that with the <a href="https://docs.microsoft.com/en-us/powershell/azure/overview?view=azps-1.1.0" rel="nofollow noreferrer">Azure PowerShell "Az" module</a>?</p>
  
  <p>Alternatively, I can <a href="https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website#how-does-it-work" rel="nofollow noreferrer">piece together the URL</a> if I can find the zone information from somewhere. e.g. From this template <code>https://&lt;ACCOUNT_NAME&gt;.&lt;ZONE_NAME&gt;.web.core.windows.net/&lt;FILE_NAME&gt;</code></p>
  
  <p>Or is there another way I can get the information I need easily from within a PowerShell script?</p>