title: "Changing property 'creationData' is not allowed." Azure Powershell
body: <p>I'm trying to create a VM from an Azure Snapshot by following the steps outlined <a href="https://docs.microsoft.com/en-us/azure/virtual-machines/scripts/virtual-machines-windows-powershell-sample-create-vm-from-snapshot?toc=%2Fpowershell%2Fmodule%2Ftoc.json" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I have reached the step:</p>
  
  <pre><code>$disk = New-AzureRmDisk -Disk $diskConfig -ResourceGroupName $resourceGroupName -DiskName $osDiskName
  </code></pre>
  
  <p>However, when this line is run, the following error is obtained: </p>
  
  <pre><code>    New-AzureRmDisk : Changing property 'creationData' is not allowed.
      ErrorCode: PropertyChangeNotAllowed
      ErrorMessage: Changing property 'creationData' is not allowed.
      StatusCode: 409
      ReasonPhrase: Conflict
      OperationID : 85382399-64e8-4547-804d-ef0796301b63
      At line:1 char:9
      + $disk = New-AzureRmDisk -Disk $diskConfig -ResourceGroupName $resourc ...
      +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : CloseError: (:) [New-AzureRmDisk], 
      ComputeCloudException
          + FullyQualifiedErrorId : 
      Microsoft.Azure.Commands.Compute.Automation.NewAzureRmDisk
  </code></pre>
  
  <p>The error seemed similar to <a href="https://stackoverflow.com/questions/45903498/getting-error-changing-property-osdisk-name-is-not-allowed-with-azure-power">this one posed here</a> however the solution provided does not configure the disk from the snapshot. Any ideas as to what could be causing the problem?</p>