How to fix a generalized VM that requires Plan information

George 1 Reputation point
2021-04-15T17:55:19.713+00:00

I have a FreeBSD server on Azure that I created using the marketplace. It was running FreeBSD 12.2 (the latest version available) and I wanted to duplicate this virtual machine. Within the Azure portal I navigated to the Virtual machine page where all the details are, clicked on "capture" and followed the steps. Since doing so the virtual machine has been turned off and is "generalized".

I then searched around and found many guides on how to bring this back up. This was one of the guides:
https://www.lucee.nl/post.cfm/azure-fix-the-vm-is-generalized

After following these steps I come across this error:
Creating a virtual machine from Marketplace image or a custom image sourced from a Marketplace image requires Plan information in the request.

After searching this error I found this guide:
https://samcogan.com/creating-vms-from-a-marketplace-image-that-needs-a-plan/

Is there a way to include these plan details on the Azure portal rather than using powershell? I ask this as I had no luck running the commands given in the guide above. It has an issue finding the image created.

Even better... is there a simpler way to just bring back the server without having to go through all these steps?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,067 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Pranathi Panyam_MSFT 1,066 Reputation points Microsoft Employee
    2021-04-16T16:08:41.12+00:00

    @George This means, the Virtual machine is generalized & this is a irreversible process. Once you generalize the Virtual machine, the VM becomes inaccessible and the operation cannot be reversed back.

    But if you have followed the right process to generalize using the document, i.e., by running sysprep inside the server & capturing it from the azure portal) you will be able to create multiple VM's with the generalized custom image.

    If the sysprep is not run inside the server and captured from the portal - You can recover the VM by taking a snapshot of the OS disk - Create a disk with it and deploy a VM.

    To Deploy a VM with plan information :

    You should get the plan information from the existing source VM(Captured VM). Go to export template you will and search for the plan.

    You will find the plan information in the below format :

    "plan": {
    "name": "nasuni_edge_appliance_7_10_6_prod",
    "product": "nasuni_edge_appliance",
    "publisher": "nasuni"
    },

    Reference Document to deploy through a PowerShell script

    Additional Information : Just to duplicate/clone one VM, you don't have to capture and create a image.
    You can just take a snapshot of the disk - create a disk with the snapshot - deploy a VM with the disk.

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

  2. Mohammed Mueen Ul Islam 0 Reputation points
    2024-02-27T18:52:17.5333333+00:00

    Hi All, I generalizing the VM then went ahead with creating the VM but got an error stating 2 vCPUs are required for this configuration. Screenshot (2879)

    Please assist me.

    
    
    0 comments No comments

  3. Mohammed Mueen Ul Islam 0 Reputation points
    2024-02-27T18:57:33.7433333+00:00

    Screenshot (2879)

    Hi All, After generalizing the VM then created an image, when went ahead with next step of creating an VM using the image I got the error as 2 vCPUs are required for this configuration. For reference see the screenshot and please assist me.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.