What is the workflow for deleting a VM using the Python SDK?

Following the available Azure Python SDK documentation, I use ServiceManagementService.delete_deployment() followed by ServiceManagementService.delete_hosted_service().  This works correctly to delete the VM, however it leaves the boot VHD still present.
 If I wait until the orphaned disk no longer has an associated VM (through the Disk.attached_to field), I am able to successfully call ServiceManagementService.delete_disk().
Is this the correct way of doing this?  Seems like there might be a better way to suspend/stop the VM, detach the disk, delete the VM and delete the disk, but I see no API for detaching a disk from a VM.
Much preferably, I would rather delete a VM and know that the associate disk(s) are also automatically deleted.
Thanks in advance.

Sorry for the delay.
The procedure you follow is correct. Sometime, when you delete the VM, the VHD of the VM remains in the lease connection. Once the lease is disconnected you will be able to delete the VHD.
However, you may refer the following link which provide clear procedure for performing common service management tasks from Python:
http://azure.microsoft.com/en-in/documentation/articles/cloud-services-python-how-to-use-service-management/
Regards,
Manu

Similar Messages

  • Best Workflow for Deleting?

    Hi Folks.
    Would anyone like to suggest the best workflow for deleting files after a project? Let's assume that i have no future need for any of the captured footage or PE7 files. It would be helpful to know what the default locations are for all the footage and files that are now on my computer.
    Thanks, Stan

    In my book I recommend that, whenever you start a new project, you create a new folder for it. That way, all of your captured video, project files, rendered video and scratch files are in the same folder. Removing it all from your hard drive is as simple as deleting the folder.
    If you didn't do that, things get a bit more complicated. Once you've backed up what you want to keep, you can manually delete the captured video, rendered files, etc., from the sub-folders -- but you'll need to do it manually. Hopefully the files will be recognizable by the names you gave your project and capture files when you created them.

  • What is the flex sdk

    I am new to flex. I understand that SDKs are availablefor
    many languages. I do not know what a SDK is for? Could you take a
    bit of time and tell me "what is the flex sdk".

    It's a software development toolkit for creating applications
    written in the flex language that run on the flash runtime.
    Similarly there's a Java SDK for creating Java apps, ditto for
    C/C++, groovy, ruby, and the list goes on and on...
    SDKs generally include a compiler or interpreter, a set of
    libraries that provide some generally useful capabilities (e.g.,
    math operations, string operations), and possibly some useful tools
    such as debuggers.
    Cheers,
    Rich

  • I have a late 2009 iMac, with a Nvidia 9400 Graphics card.  I was wondering what my options are for upgrading.  I use Windows 7 via Bootcamp, so I need a card that is compatible.

    I have a late 2009 iMac, with the default Nvidia 9400 Graphics card.
    I was wondering what my options are for upgrading.  I use Windows 7 via Bootcamp, so I need a card that is compatible/has available drivers.
    This is for gaming. On the lowest settings of "Call of Duty 4", I get about 100 FPS... Was hoping to be able to play on higher resolution w/o the fps lag.
    I'm not good with the hardware part of computers at all, but know how to get around the OS.

    In most cases the graphics cards in iMacs are Not upgradeable.  They are usually soldered to the logic board.  RAM is considered, along with harddrives, the only component that is upgradeable in an iMac, unlike in PC's.  So basically you would need to sell your unit and purchase an iMac with a more powerful graphics card.
    Hope this helps

  • I need to publish a magazine in arabic and english - what should I buy - for how much to use 15 mac books for my students to use indesign?

    I need to publish a magazine in arabic and english - what should I buy - for how much to use 15 mac books for my students to use indesign?

    You can only return the machine if you're within 14 days of purchase - otherwise you're just 'stuck' with what you purchased (unless you sell it, of course).
    I always recommend that Retina owners order 16GB of RAM as the RAM is not upgradable - it's soldered onto the logic board.
    Your call - if you're with 14 days of purchase, take it back and exchange for a 16GB model. Or sell it and buy a model with 16GB. The higher amount of memory will allow you to run far more memory-hungry apps concurrently.
    Good luck,
    Clinton

  • How can I retrieve/compute an X509 certificate's thumbprint in Python and then use it for accessing Service Management APIs from Python SDK?

    Hello,
    I am using Azure Python SDK to perform calls to ServiceManagement APIs.
    I have a .publishsettings file generated for my account which includes an encoded version of my X509 certificate and all of my subscription IDs.
    How can I retrieve/compute an X509 certificate's thumbprint in Python?
    Following is the code snippet that helps us do it in .Net.
    Is there a similar approach to do it in Python?
    var publishSettingsFile = @"C:\temp\CORP DPE Account-11-16-2011-credentials.publishsettings";
    XDocument xdoc = XDocument.Load(publishSettingsFile);
    var managementCertbase64string = xdoc.Descendants("PublishProfile").Single().Attribute("ManagementCertificate").Value;
    var importedCert = new X509Certificate2(Convert.FromBase64String(managementCertbase64string));
    thumbprint = importedCert.Thumbprint;
    Once I have the thumbprint, how can I use that thumbprint to access Service Management APIs from Python SDK?
    Thank you in Advance!
    Regards,
    Vaibhav Kale

    Hi,
    Please have check on the below article and check if it helps.
    http://azure.microsoft.com/en-in/documentation/articles/cloud-services-python-how-to-use-service-management/
    Regards,
    Mekh.

  • AE 5.1 and 5.2 - Configuring parallel workflows for "Delete" Request type

    Has anyone configured parallel workflows for the "Delete" Request type?  I want to configure 1 for SAP and 1 for non-SAP applications, but have been unable to do it successfully. 
    The initiators I have created that do not work are:
    1 - SAP initiator:
    SAP application with "OR" condition
    Request Type = Delete with  "AND" condition
    2 - Non-SAP initiator:
    Non SAP application 1 with "OR" condition
    Non SAP application 2 with "OR" condition
    Non SAP application 3 with "OR" condition
    Request Type = Delete with  "AND" condition
    When I create a request to Delete a user with SAP app and Non SAP app I get the error:  "Error in creating request. Multiple Initiators, [NON SAP DELETE, SAP DELETE] Found."
    Based on what I am reading on p. 58 of the AE52ConfigGuide.pdf, this should be possible to do.  Does anyone have any suggestions?

    This is my understanding.,
    A request cannot have more than one initiator. You cannot trigger multiple initiators for one single request. In your case both attributes SAP & Non SAP application are given with OR condition which makes both the initiators alike. As mentioned in the documentation the request for deletion can be made to happen in both SAP & Non SAP application by having forked path (for this the initiator should be OR Application SAP OR Non SAP Application AND Request Type Delete). Given the other option then it should have different initiator for SAP and Non SAP applications by giving them with AND condition.

  • Workflow for deleting extra footage from session/hard drive

    I want to save hard drive space. I have several session of 40gb each. I am new to video editing and realize the way to work is to trim the 4gb files so that I only have the needed footage on the drive, deleting the prerolls and extras from my drive. BUT, I dont know how to do this in Premiere Pro CS6. Is this task better done before I create a project?
    So what is the best workflow?
    Workflow A
    1. Insert SD Media to Computer and edit using MPEG Streamclip or Quicktime(trimming)
    2. Export clips into Session/Scene based folders on main footage hard drive
    3. delete source files from SD media - large files never get saced to hard drive
    If this is best, what export settings are best for Premiere Pro CS6.
    Can this task be as easily done in CS6?
    Workflow B
    1. Insert SD card into computer and open clips in Premiere Pro CS6
    2. Add Scenes/Sessoins into a Sequence and use in/out points to drop clips/subclips into the project(per scene)
    3. export them to hard drive and delete session footage.
    Id this is best, how do you export from Premiere Pro CS6 so that the clips in the sequence are now referenced, the audio and video are stored where I can access them/labeled and I can trash the source footage.
    I hope this makes sense. I want to trim away the wwasted footage and drive space. My 250GB drive is almost full and only 20-30GB is useufl footage. I need a workflow to reduce the file sizes.
    For the current footage  I have the resolution of the export doesnt matter, no one will see them but me. Rehearsal footage. I need the audio and video to stay linked(is that what rendering does?)
    Thanks.

    So an example of what i'm doing is this.
    Last week I  captured 4 rehearsals (musicians and dancers) each lasting one hour. Each rehearsal contains only 2o mins of usefull footage. But the 20 mins are spread out so that if i edited each session there would be 5 4min clips. There will be rehearsals ongoing for twelve weeks so I''ll be duplicating this process many times. I want to save space on the drive by doing some initial editing to reduce each hour session to 5 4min clips.
    What is the best workflow  so that at the end of each week I have 4folders each holding the 20mins of good footage(and audio) on my drive and all the unneccessary footage is trashed. A few sessions will comprise a multicamera setup. All sessions have audio from the cameras and audio from a mixing console. I want all the audio from every source kept.
    I want to preedit each week so that 12 weeks from now when I do the master edit, I have already saved rive space, matched audio sources to the clips(even if I havent edited multicamera clips)
    Can you help me with the front end of the post capture workflow? What is the best way to save space and time given my goal of documenting the rehearsals and for havign a compilation video later? Thanks !!!!

  • What's best workflow for adding subtitle to existing dvd?

    We have been requested to add a foreign language subtitle to an existing dvd. It was authored in DVDSP so we have the original files. The translators are requesting a QT or dvd with window dub of the timecode for timing. How would I do that if the assets are already encoded and in the DVDSP timeline?
    Also, the project is setup on 5 tracks, many short chapters in each. Because the cost for translation is per file, it means we pay the minimum charge for each track which ends up being double than if we would have kept all the files on a single track. Other than re-authoring the dvd is there another way to do this and save the money. If I get a stl or son file of a long video stream can that file be broken into separate files for each of the tracks? Also looking for a better workflow for the future.

    rshellhammer wrote:
    ...we have the original files. The translators are requesting a QT or dvd with window dub of the timecode for timing.
    Take the file you used in Compressor to make the mpeg and make a mov file h.264 I believe will maintain the timecode.
    Also, the project is setup on 5 tracks, many short chapters in each. Because the cost for translation is per file, it means we pay the minimum charge for each track which ends up being double than if we would have kept all the files on a single track. Other than re-authoring the dvd is there another way to do this and save the money.
    No.
    If I get a stl or son file of a long video stream can that file be broken into separate files for each of the tracks?
    Not without a lot of work.
    o| TonyTony |o

  • What is best workflow for interpret NTSC footage into PAL project?

    Premier Pro CC cutting a film for HD broadcast TV. Majority of footage shot PAL at 1080p, so I made a 1920 x 1080 25p project. Is it okay to make a progressive project for broadcast? Or should I switch to interlaced?
    I am supposed to deliver an NTSC tape to the network.
    Some footage is 29.97 and 23.97.  Is it okay to Interpret footage in bin as 25p PAL and then cut it into my sequence.  It seems to play properly; I'm just concerned about problems in the final output. I've read that people duplicate the clip, then interpret to 25fps PAL, and leave the original NTSC alone.  This sounds like a good idea. Working on a MacBook Pro Mountain Lion.
    When I output the final QT movie, what are the best settings and codec to use for the final
    Hi-Res output which I will bring on a drive to a post house to do final CC and layback to tape?
    Many thanks in advance.
    Patrice Shannon

    Convert NTSC <--> PAL http://forums.adobe.com/thread/1209530 may help

  • What is the right sdk api to work with webi reports in BOXI Release 4?

    Hello,
    I just read in the omg model for rebean (sdk for working with webi report documents) that all functions to access the report structur and layout are no longer availabe beginning with Release 4.
    Can anyone confirm, that this is the case?
    Are those functions moved to a different SDK component?
    Thanks in advance,
    Bernd
    Dokumentation about rebean _omd
    u2022 The object model shows many funtions , classes in red which means:
    Note: The Classes, Interfaces, and Methods marked in red are no longer functional from the SAP
    BusinessObjects Business Intelligence Platform 4.0 release onwards.
    u2022 Among those functions are all !! We need to analyze the report layout
    u2022 No longer supported: DocumentInstance.getDictionary() , DocumentInstance.getOpenDocumentInfo(), DocumentInstance.getResourceManager(), DocumentInstance.getStructure()
    u2022 Classes no longer supported: ReportElement, ReportDictionary, Query, QuerySorts, DataSourceObject(s), SQLDataProvider,QueryNode, DPExpression, QueryContainer, Link,
    u2022 Classes no longet supported: ReportBody, ReportContainer, ReportStructure, ReportBlock, Graph, *Table
    u2022 Classes no longer supported: Cell, PageHeaderFooter

    Thank you for the information srrachna !
    Well, the point with the report engine sdk is a surprise. What is the sense of new functionality when you cannot use it (spoken for the api processing), and in addition when the new functionality eliminate functionality which was available before in the sdk.
    In my view this cut is to hard. The .pdf speaks from deprecated, but the blog and the information in the report engine api speaks a different language. The functionality is not just deprecated but no longer available.
    Hope SAP will address that before relase 4 becomes GA in May 2011.

  • How to get the list of values for a dynamic parameter using Web Services SDK?

    <p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>

    <p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>

  • BOE COM SDK ... What is the right SDK to use in the future

    Post Author: Berndb
    CA Forum: Other
    The SDK documentation says that the Business Objects Enterprise COM SDK is deprecated.
    What is SDK one should use when you start new development in BOXI?
    Thanks,
    bernd

    Post Author: Ted Ueda
    CA Forum: Other
    XI R2 had three versions of the Enterprise SDK - Java, .NET and COM.COM is the only one being deprecated. Sincerely,Ted Ueda

  • Using customer workflow for delete action on active sync

    The following from is called by a partent form when the feedOp is delete.
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Configuration PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Configuration name='VDSActiveSyncDeleteForm' wstype='UserForm'>
         <Extension>
              <Form>
                   <Field name='viewOptions.Process'>
                        <Expansion>
                             <s>Custom User Delete</s>
                        </Expansion>
                   </Field>
                   <Field name='deleteFields'>
                   <Field name='resourceAccounts.currentResourceAccounts[Lighthouse].selected'>
                   <Expansion>
                   <s>true</s>
                   </Expansion>
                   </Field>
                   </Field>      
              </Form>
         </Extension>
         <MemberObjectGroups>
              <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top' />
         </MemberObjectGroups>
    </Configuration>
    The default delete user workflow keeps running. I am verify this by setting the filetrace in the system configuration.
    What am I doing wrong?

    Looks like 'viewOptions.Process' does not work on a delete feedop....but this looks to work
    <Field name="processInputs.task.process">
    <Expansion>
         <s>NIPR Delete User</s>
    </Expansion>
    </Field>

  • How can we implement workflow for Deleted content

    Hi Experts,
    whenever we delete a content , It never went into Workflow.
    I want when user delete any content, It should go into workflow. When approver approves it, only then content item should actually deleted. If approver rejects it, content item should not get deleted.
    Is there any way to achieve this ??
    thanks

    Several things jump out about how you may be using delete.
    First is that delete rights are set up as separate and distinct from Read and Write (contribute) rights. This is true even for content authors.
    There is good reasoning behind this. Basically, because deleting items has special and often regulated meaning, giving users delete permission should be a very intentional action and never a default.
    Second, using the "expiry" functionality is a much better and safer option in most cases. Expiring a piece of content removes it from visibility to all except the sysadmin. Expiring content effectively "soft deletes" the item from the user experience while allowing the administrators to still recover the item if necessary. Another advantage of expiring content rather than deleting it is that as the content approaches the expiry date or as an expiry action is triggered, this can automatically trigger actions like a workflow review, email notification, BPEL service call etc. This gives you advance warning as well as the ability to intercept, review, and sign off on the action. You can also run batch jobs to archive and store or archive / delete "expired" items if you determine that you still need to do this.
    Finally, if you have considered the above options and still determine that you need to capture "delete requests" then the best option is to write a custom component that intercepts the delete service request and triggers a workflow, notification, expiry or other action.
    Remember that when you delete an item you must consider whether or not you are deleting just the latest released revision or all revisions or some selection of revisions. OOTB, UCM allows those with delete permissions to delete revisions one at a time. The repository manager applets provide admins with a bit more batching flexibility.
    Hope that helps,
    Warmly,
    Billy Cripe
    Fishbowl Solutions

Maybe you are looking for