title: Moving resources failed because resource group has active deployments
body: <p>When I try to change a website's resource group in Azure Powershell, I get the following error:</p>
  
  <pre><code>"Error": {
    "Code": "MultipleErrorsOccurred",
    "Message": "Multiple error occurred: Conflict,Conflict. Please see details.",
    "Target": null,
    "Details": [
      {
        "Code": "DeploymentActive",
        "Message": "Moving resources failed because resource group 'rg1' has active deployments.",
        "Target": null,
        "Details": null
      },
      {
        "Code": "DeploymentActive",
        "Message": "Moving resources failed because resource group 'rg1' has active deployments.",
        "Target": null,
        "Details": null
      }
  }
  </code></pre>
  
  <p>I use the following commands:</p>
  
  <pre><code>$webapp = Get-AzureResource -ResourceGroupName "rg1" -ResourceName resourceName -ResourceType Microsoft.Web/sites
  
  Move-AzureResource -DestinationResourceGroupName "rg2" -ResourceId $webapp.ResourceId
  </code></pre>
  
  <p>One solution is to delete and recreate the website but is there any other way that we can sort this problem out without deleting anything?</p>