title: Azure Linux webapp backup restore from storage container fail PowerShell
body: <p>N:B
  Manual restore from Portal working well and Powershell restore is not working</p>
  <p>I am going to use PowerShell via AzureDevops pipeline jobs to do the restoration.</p>
  <p>Azure app hosted in Austalia East
  Web app backup goes to Australia Southeast where the Azure storage account is configured.
  Web app name mywebapp</p>
  <p>I have configured Azure Linux web app backup to the Azure storage account container. I am trying to restore the backup to webapp.</p>
  <p>Here are the steps that I used.</p>
  <p>Deleted original web app in Australia East (mywebapp)
  Created a new web app in the Australia Southeast region with similar configurations.</p>
  <p>I am trying to restore using PowerShell (backups are in Azure storage account)</p>
  <p>Here is the command I used</p>
  <pre><code>Restore-AzWebAppBackup -BlobName 'myapp_202109230658.zip' -Name 'myapplive' -Overwrite -ResourceGroupName 'myapp_migrated_env' -StorageAccountUrl 'https://amyappstorage.blob.core.windows.net/appbackup?sp=r&amp;st=xxxxxxxxxxxxxxxxxxxx0:20:03Z&amp;spr=https&amp;sv=2020-08-04&amp;sr=c&amp;sig=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx%3D' -debug
  </code></pre>
  <p>I used generated SAS URL of the storage container to  StorageAccountUrl</p>
  <p>This is the error I am getting</p>
  <pre><code>    {
  </code></pre>
  <p>&quot;Code&quot;: &quot;BadRequest&quot;,
  &quot;Message&quot;: &quot;Required parameter AccessKey is missing.&quot;,
  &quot;Target&quot;: null,
  &quot;Details&quot;: [
  {
  &quot;Message&quot;: &quot;Required parameter AccessKey is missing.&quot;
  },
  {
  &quot;Code&quot;: &quot;BadRequest&quot;
  },
  {
  &quot;ErrorEntity&quot;: {
  &quot;ExtendedCode&quot;: &quot;01010&quot;,
  &quot;MessageTemplate&quot;: &quot;Required parameter {0} is missing.&quot;,
  &quot;Parameters&quot;: [
  &quot;AccessKey&quot;
  ],
  &quot;InnerErrors&quot;: [],
  &quot;Details&quot;: [],
  &quot;Code&quot;: &quot;BadRequest&quot;,
  &quot;Message&quot;: &quot;Required parameter AccessKey is missing.&quot;
  }
  }
  ],
  &quot;Innererror&quot;: null
  }</p>
  <p>Restore-AzWebAppBackup: Long running operation failed with status 'BadRequest'.
  DEBUG: AzureQoSEvent: Module: Az.Websites:2.8.2; CommandName: Restore-AzWebAppBackup; PSVersion: 7.1.4; IsSuccess: False; Duration: 00:03:56.0777035; Exception: Long running operation failed with status 'BadRequest'.;
  DEBUG: Finish sending metric.
  DEBUG: 2:24:56 AM - RestoreAzureWebAppBackup end processing.</p>
  <p>Followed Azure documentation and not working restoring process.</p>
  <p>Restore-AzWebAppBackup command does not support any accesskey parameters</p>
  <pre><code>Restore-AzWebAppBackup
     [-AppServicePlan &lt;String&gt;]
     [-Databases &lt;DatabaseBackupSetting[]&gt;]
     [-IgnoreConflictingHostNames]
     [-ResourceGroupName] &lt;String&gt;
     [-Name] &lt;String&gt;
     [[-Slot] &lt;String&gt;]
     [-DefaultProfile &lt;IAzureContextContainer&gt;]
     [-StorageAccountUrl] &lt;String&gt;
     [-BlobName] &lt;String&gt;
     [-Overwrite]
     [&lt;CommonParameters&gt;]
  </code></pre>
  <p>So I need to fix the issue and restore the web app</p>