Capture Image rest API deletes Virtual machine

Hi,
When we capture an image of a virtual machine, then it deletes the virtual machine in the azure portal itself.This is the same behavior through REST API as well.
Is there any way we can keep the Virtual machine after a capture on the image is done through REST API?
Thanks

Hi,
You could refer the following link for details on how to capture an Azure virtual machine running Windows and it clearly mentions that "When you capture an image of a generalized virtual machine, the virtual
machine is deleted."
http://azure.microsoft.com/en-in/documentation/articles/virtual-machines-capture-image-windows-server/
Instead, you could try taking a snapshot of the VM using "Export-AzureVM" and "Import-AzureVM".
You could refer the following link for details:
http://blogs.technet.com/b/heyscriptingguy/archive/2014/01/24/create-backups-of-virtual-machines-in-windows-azure-by-using-powershell.aspx
Also you could consider cloning your VM (https://github.com/dsdinter/Azure-VM-clone).
Regards,
Malar.

Similar Messages

  • Virtual Machine in Azure Unresponsive and also cannot RDP

    I have a Windows Server 2012 R2 Datacenter server that was working fine for over a month. Now suddenly I cannot RDP to it from external or even internally from another machine on same virtual network. I tried to access Services from the domain controller
    and it gives me an RPC error.  I have tried restarting it several times. Says it is running in the management portal.
    Since I cannot ILO to the machine, what are my options?

    Hi,
    Apologies for the inconvenience. A subset of customers using Azure Search, Websites, API Management, Virtual Machines and Azure Search in East US may encounter errors due to an on-going Storage issue. Our engineers have identified a potential root cause and
    are examining options to mitigate the issue. 
    Please refer to http://azure.microsoft.com/en-in/status/#current to check on the status.
    Regards,
    Sowmya

  • Exchange Server Virtual Machine Move

    Hi team,
    Here's my focus area. There's an Exchange Server 2010 (Hub/CAS/MBX) in a virtual instance(Hyper-V 2k8 R2). Everything is running smoothly, except the engineer who deployed it had taken a snapshot after 2 months of use which is dated in 2012. Since then no
    back-up has been taken and is running without an issue.
    Now, they want to move all the virtual machines into a NEW physical server. All the other VM's are to be Exported and Imported. However, with Exchange 2010, I want to know if the Export > Import theory will work.
    My concerns are;
    Is the snapshot taken in 2012 going to be an issue when Exporting and Importing?
    Since both Active Directory and Exchange are virtualized, will exporting these two make any issues?
    What would be my best option if Export > Import is not going to work?
    As the last place of resort, I'm thinking of adding a ADC, make it Primary. Then add a secondary Exchange Server, Move mailboxes, Calendar, connectors n then, demote the second one. But it's going to be a lengthy task.
    Thank You.
    Chris!

    I wouldn't use snapshot for Exchange 2010 (and thus Active Directory) as those are point in time restore which will bring you back to the time when it was taking and will lose the data or all updates since then...
    Besides snapshot is not supported in Exchange 2010 as mentioned here... http://technet.microsoft.com/en-us/library/jj126252(v=exchg.141).aspx
    Some hypervisors include features for taking snapshots of virtual machines. Virtual machine snapshots capture the state of a virtual machine while it's running. This feature enables you to take multiple snapshots of a virtual machine and then revert
    the virtual machine to any of the previous states by applying a snapshot to the virtual machine. However, virtual machine snapshots aren't application aware, and using them can have unintended and unexpected consequences for a server application that maintains
    state data, such as Exchange. As a result, making virtual machine snapshots of an Exchange guest virtual machine isn't supported.
    Install Exchange on physical server and move mailbox, connector and all other services from Virtual to Physical and then uninstall Exchange from Virtual server properly. I know it is lengthy process but gives you peace of mind as no data or change lose...

  • Cannot start Hyper-V virtual machine

    Hi,
    I have a Windows 2008 Server. It has been now upgraded to Windows 2012. Everything was working fine. But, now I turned off the virtual machine and copied the VHD file to another drive for backup. After this, I am not able to start the old virtual machine.
    (The VHDs are in place. I only copied them) However, two another virtual machines are running now without any problem. While trying to start, I am getting the error "the operation cannot be performed while the object is in its current state". These are
    critical server. Any quick thoughts?
    Thanks
    Tom Jacob

    Hi,
    If possible please restart the Hyper-V host server, then check whether still has such issue.
    If issue still there, launch Event Viewer, check Hyper-V related logs. Post the logs for further troubleshooting.
    And I notice you mentioned turned off the virtual machine, do you mean the VM running well in the past? (I mean after you upgrade server to Windows server 2012)
    Can you export the VM now? Export it then delete the VM from Hyper-V, import the VM again and check the result.
    For more information please refer to following MS articles:
    Hyper-V: Can’t delete Virtual Machine with ‘Opertion cannot be performed while the object in current state’
    http://blogs.technet.com/b/chrad/archive/2010/06/24/hyper-v-can-t-delete-virtual-machine-with-opertion-cannot-be-performed-while-the-object-in-current-state.aspx
    Operation is not valid due to the current state of the object
    http://social.technet.microsoft.com/Forums/en-NZ/ilm2/thread/0646a166-67b1-4322-ba9a-77e3e3ced31d
    Lawrence
    TechNet Community Support

  • I would like to use a virtual machine as a refernce computer during capture and depoly

    Hello all
    I can't seem to find a good step by step on using a virtual machine as a refernce computer for the capture and depoly part of OSD. Does anyone have a link that has helped them?
    Thanks,
    Phil
    Phil Balderos

    It is pretty straight forward, same way you would do a B&C on a physical. Only added benefit is you don't have a bunch of garbage drivers preloaded into the OS.
    I can give you a high level type of approach:
    Create your B&C task sequence inside of SCCM
    Advertise to your unknown computers collection
    Using your Virtualization software, provision your VM with standard hardware. Nothing special
    PXE boot your VM into the SCCM OSD
    Choose your advertised B&C task sequence
    Once complete, add your newly captured WIM to the Operating System Images node in SCCM
    Create a Deploy Task Sequence
    Advertise that to your unknown computer collection
    PXE boot one of your physical boxes and test the new task sequence to ensure the new image works/looks properly
    Please note: Step 9 may take some additional configuration of boot drivers in order to work depending on your hardware you are trying to deploy to
    It's hard to get any more in depth on a walkthrough with that process unless you wanted to start getting hardware/software specific. If you have questions along the way about specifics we can always help with that as well
    Dustin Estes - MCP | www.dustinestes.com
    This is good stuff Dustin! Thanks. I will actually work on this now
    Phil Balderos

  • Trying p2v import of virtual machine image, server pool not chooseable

    I'm trying to import a virtual machine image via p2v from an OEL 5 bare metal image. I go to resources, virtual machine images, Import, choose p2v, and then on the General Information page, it asks for Server Pool Name. The name of my one and only server pool is not in the dropdown. The dropdown only contains "Select Server Pool". I tried to fill in the rest and hit Next but it failed me on the Server Pool name.
    How can I get the server pool name to show up in that dropdown?
    There is one server pool, one server, and one vm already on that server.
    thanks,
    Peter

    It's a bug, I had the same problem. I used this and it worked (copying and pasting from an old thread with the solution):
    Workaround:
    VM Manager -> Server Pools -> Select Server Pool Name -> EDIT -> Check the box of “Enable High Availability” -> Apply -> Ignore the “Shared storage is not mounted, or the file system is invalid. The file system should be OCFS2 or NFS.” error message. Leave unchecked the box of ”Enable High Availability” -> Apply again:
    “The server pool updated successfully.”
    Now you can retry the import.

  • Cloud and virtual machine API - Which one is best way

    Hi
    We are having cloud services in our environment. In that we have web role and vm role. We want to collec the cloud, virtual machine and web role related information both config details and performance related information. 
    1) For this we are using Service management REST API and
    API indicated in the below link 
    http://azure.microsoft.com/en-in/develop/java/
    https://msdn.microsoft.com/library/azure/ee460799
    http://dl.windowsazure.com/javadoc/
    1) I want to collect the cloud, virtual machine and web role configuration
    details and performance details (like screen shot 1 and 2)
    2) I want to collect the Diagnostic information enabled by virtual machine and cloud services like
    WADPerformanceCounterTable etc
    Which one is the best way (from the above link) to collect all these informations. Please suggest me..
    Thanks & Regards,
    Rathidevi

    Hi ,
    We want the same for java. So we referred the link below and attached screenshots.
    http://azure.microsoft.com/en-in/develop/java/
    In the below screenshot gives (Service Management/API/REST and Table Services/API/REST). 
    In that which one is best API or REST.
    We want the configuration, Performance and dignostic details of cloud , virtual machine and web role related information.

  • While deleting the virtual machine .vhd folder -- error msg : the process cannot access the file beacuse it is being used by another process

    When i am trying to delete the Virtual Machine folder/directory i get the below error. Virtual machine is turned off
    V:\>rmdir ME-EXCAS01 /s
    ME-EXCAS01, Are you sure (Y/N)? y
    ME-EXCAS01\ME-EXCAS01\Virtual Machines\1B1FD14E-B3F0-4232-9F96-2A871E879CD6.xml
    - The process cannot access the file because it is being used by another process
    How to delete the whole folder ?
    Thanks

    Also, if your VM has snapshots and you delete it, you must wait for the snapshots to finish merging - the VHD files will be locked until then.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • Why does IE8 running on XP and Win7 Virtual Machine deletes the history while I'm still browsing the same site with client-side hashbang routing?

    Hello, 
    I have a asp.net mvc 5 web application running on .net 4.5 hosted on my local windows 8 machine on macbook pro using parallels. I'm running Internet Explorer 8 Version: 8.0.6001.18702 running on XP and Version: 8.0.7601.17514 running on Windows 7 Enterprise.
     I've got both of the virtual machine source from www.modern.ie 
    My web application is attempting to provide single page user experience by having some client-side routing by using '#!/xxx' hashbangs in the url so that I can get and post via ajax and change the hash in  the url without causing the page to reload. My
    code works fine in IE9+ and other modern browsers.
    However, I'm facing this strange issue in both of the IE8 versions. When running my demo app in IE8, I can login, view home page and can navigate from this home page to many details page. From the very first login page, all the pages are the result
    of form's post action via ajax which then expects html from server and loads in the DOM. The page structure of my app is like summary form => Details page (can also contain summary forms) => Details...so on.
    The above process works fine for few of the navigation steps. If I keep navigating from one page to another & go back, I have observed that the browser back button is removing the history items slowly. And a time comes when it totally forgets about
    all the history pages that I visited to reach this current page I'm viewing!! It treats like I have just started my browsing session and this current page is the first page I've landed on with no back option. Now if I again try to navigate, I have encountered
    problems like both the back and forward buttons gets disabled.
    Hope, my words above is clear enough to explain this problem. The same application works fine in IE9+ and other browsers. 
    Till now, I have tried following steps on both VMs: 
    Resetting IE8.
    Increasing disk space to 1024mb for temporary internet files storage.
    Setting 'Never' for Check for newer versions of stored pages.
    Disabling the automatic crash recovery feature didn't helped in this case. Found this on support website.
    Deleted temporary files, history, cache, etc many a times.
    Search many forums, posted question on StackOverflow, ASP.NET
    Forums - but didn't helped.
    Tried 'beforeunload' event of browser to see if any of the page is reloading because of submit or any other reason. But the page doesn't reload at all.
    The issue is browser forgets about the browsing history while I'm still browsing the same site. 
    Is there any possible fix for the issue above? Does IE8 have any issues as many ajax form post is happening on every page? 

    I have really tried many things to identify any possible reason of the issue above. Even rewrote all my javascript navigation code and checked server-side code.
    But the only place where I got the solution is at site: http://www.enhanceie.com/ie/bugs.asp which states that there is a bug in IE8 which reads like:
     IE0012: IE Travellog broken when navigating back/away from a page with
     a large POST form If there is a form input field with a value longer
     than 523,659 characters, when you navigate away from the page, IE may
     clear the current session's travellog (similar to history), disabling
     the back and forward buttons. Repros in IE6 & IE7.
    There are following solutions that you can go for:
    - Check for the input field that has lots of characters as mentioned above and solve your problem.
    - If you have control over the system where IE8 will be used, you can add the following registry key on that machine. There is no existing key, so, you need to add a new one:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TravelLog] "MaxSize"=dword:ffffffff
    I am really relaxed to find this information as I spent really long time to solve this issue. Hope this will help someone.

  • I had creative cloud installed in a parallels deskto virtual machine on my mac, I delete the virtual machine without deactivate the creative cloud. after reinstall a new VM running windows 8.1. pro 64 bits, I downloaded the creative cloud installer but it

    I had creative cloud installed in a parallels deskto virtual machine on my mac, I delete the virtual machine without deactivate the creative cloud. after reinstall a new VM running windows 8.1. pro 64 bits, I downloaded the creative cloud installer but it does not install ang give an Error code 72, it is assuming that I already are using the Creative cloud in 2 computer, but itis no the case, how to solve this situation?

    Dave: I did the Microsoft Update two days before this happened, and rebooted as required.  I just created a new restore point and lauched Creative Cloud.  Now I get the famous white screen:
    It just sits and spins (been 10 minutes now). 
    Fortunately, I saved away this command (which I've had to use 4 or 5 times already):
    del %USERPROFILE%\AppData\Local\Adobe\OOBE\opm.db
    Unfortunately now, I get this (even after closing the above window):
    The process cannot access the file because it is being used by another process.
    So I killed everything that said "Adobe" in the task manager and this time, the command succeeded.
    Fortunately, the current apps seem to still work.  I can't seem to find the "Creative Cloud" app in the applications on my system, but I launched Photoshop CC, told it to look for updates, and got a list of the 5 prgorams that need updates in the Adobe Application manager:
    I will proceed with the updates, holding my breath.

  • I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    Thanks - Of Course the first thing I checked and did.
    Disc Utility reads as follows:
    Capacity : 159.18 GB (159,182,127,104 Bytes)
      Format : Mac OS Extended (Journaled)  Available : 11.47 GB (11,472,896,000 Bytes)
      Owners Enabled : Yes  Used : 147.71 GB (147,709,231,104 Bytes)
      Number of Folders : 139,540  Number of Files : 511,832
    Activity Monitor(Disc Usage) shows something quite interesting.  Mac HD and Ramanan (Main User) - My hard drive is only 160GB!  Would the retired engineer gentleman please note as well.  Many thanks. Rams

  • Is it possible to make an image of a MBP, and run it as a virtual machine?

    Is it possible to create an image of an exitsting MBP, transfer the image to another system or server, and run that image as a virtual machine?  If so, how?
    Thank you

    Mac OS X will not run in a virtual machine, except as 10.6 Server:
    https://discussions.apple.com/docs/DOC-6841

  • Can't delete group by REST API

    I use this URL for delete a group: https://graph.windows.net/<domain>/groups/<objectId>/?api-version=1.5 (ref: https://msdn.microsoft.com/en-us/library/azure/dn151608.aspx)
    but I can't do it. I set full permission for application (I can create/update). How deleted group via REST Api?
    This is requonse:
    odata.error: 
    code: "Authorization_RequestDenied"
    message: 
    lang: "en"
    value: "Insufficient privileges to complete the operation."

    Hi,
    Are you using this link to delete the group
    https://graph.windows.net/<domain>/groups/<objectId>/?api-version=1.5
    the method states that it has used the date, not the version of API as mentioned below.
    https://graph.windows.net/mytenantdomain/groups/<objectId>?api-version=2013-04-05
    The Sample request also has the date, not the exact version of the API
    DELETE https://graph.windows.net/contoso.onmicrosoft.com/groups/bc0001a2-5b96-4073-a5be-6b80528a17ad?api-version=2013-04-05
    HTTP/1.1
    Authorization: Bearer eyJ0eX ... FWSXfwtQ
    Content-Type: application/json
    Host: graph.windows.net
    Hope this helps you.
    Girish Prajwal

  • HotSpot Virtual Machine bug?  -- error captured

    My iPM environment crashes without obvious reason or warning. In addition there are numerous and quite frequent errors from threads. Those erorrs do not crash kjs but once those start appearing on kjs I'm forced to restart kjs (at least once a day) because iAS/iPM does not respond to requests.
    Here is an error message that appears on kjs right before kjs crashes:
    # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Error ID: 4F533F57494E13120E43505002F5
    # Problematic Thread: prio=5 tid=0x3c355cb0 nid=0x29a runnable
    Has anyone seen it and if so is there a "cure"?
    I captured this error by starting iAS from command line. Since there is no way to start 2 kjs' from command line (see more about it in my earlier post) I started one and let "kas -cmd" load the other kjs and iiop (<- also impossible to start from command line)
    Luckily it was the kjs started by me that crashed hence the cmd windows didn't immiediately fold and I was able to get the message.
    Here is hardware/software info:
    iAS6 sp2, WinNT4 Server, 2 processors, 2GB RAM, RAID5. iAS running 2 kjs engines, 1 corba engine

    Hi,
    Are you running a sample application or your own application ?. Also please let us know what version of Java are you using, you can check this at the command prompt as follows...
    C:\iPlanet\ipm6\ias\usr\java\bin>java -version
    java version "1.2.2"
    Java HotSpot(TM) Server VM (2.0fcs, mixed mode, build E)
    C:\iPlanet\ipm6\ias\usr\java\bin>java -fullversion
    java full version "JDK-1.2.2-W"
    Thanks & Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • AVHD files not being deleted by Hyper-V when DPM backs up virtual machines

    Hi,
    I understand DPM uses checkpoints to backup Hyper-V virtual machines.
    We have seen a few instances whereby the AVHD files that are created at the time DPM backs up the VM are not being deleted on the CSV disk.
    There are no checkpoints associated with the virtual machine in Hyper-V settings.
    We did delete one of these AVHD files on a non-production system and it was successful, the AVHD files are not being used by the virtual machine.
    Is it safe to delete these AVHD files? Anyone experienced anything similar?
    Microsoft Partner

    Hi
    Could you please let su know if you have acrried out any ILR operations?
    When you recover a VHD of a virtual machine that has Hyper-V snapshots, .avhd files are not displayed in the
    Recoverable Items pane, but DPM recovers the parent VHD and all the associated .avhd files.
    Just want to confirm that these avhd files are not coresponding to recovery process.
    Regards, Trinadh [MSFT] This posting is provided AS IS with no warranties, and confers no rights. If you found the reply helpful, please MARK IT AS ANSWER. Looking for source of information for DPM? http://blogs.technet.com/b/dpm/ http://technet.microsoft.com/en-in/library/hh758173.aspx

Maybe you are looking for

  • Mini Mac won't shut down!

    Core Duo won't shut down or log out or re-start but can sleep. Can use terminal to kill processes but it is not an application causing the problem. The output is to a TV via S-Video and am using wireless keyboard via USB. Appreciate any suggestions.

  • Help! Itunes install error 7 (windows error 127)

    trying to install itunes 10.5.1...having lots of trouble! it seems to install, but whe I go to launch, I got this error message... "The procedure entry point kCMByteStream notification_Available length changed could not be located on the dynamic link

  • Cor1(process order)

    HI All, My requirement is to create a idoc for the process order which is released from COR1.(idoc part is completed) Can any one suggest me a badi which will triger while releasing the process order from COR1 (not cor5), i worked with workorder_upda

  • Debug a servlet

    Is my understanding correct you cannot debug a servlet in weblogic8.1 - or am I suffering from finger trouble? I have a servlet with breakpoints that are never actioned - even though I know I executing the code, I can edit, build and change its behav

  • Screen Personas Suggestion

    Not sure if this is the correct place to request new features for Screen Personas... but... It would be a great feature to add a text field that provided instant search (like google or similar to the suggested tags at the bottom of the SCN create new