Waleed Raslan

My feedback

  1. 958 votes
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)

    We’ll send you updates on this idea

    144 comments  ·  Virtual Machines  ·  Flag idea as inappropriate…  ·  Admin →
    Waleed Raslan supported this idea  · 
  2. 427 votes
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)

    We’ll send you updates on this idea

    71 comments  ·  Virtual Machines  ·  Flag idea as inappropriate…  ·  Admin →
    Waleed Raslan supported this idea  · 
    An error occurred while saving the comment
    Waleed Raslan commented  · 

    While waiting for this feature to land in the Azure Portal, there is an automated solution to selectively clean up VMs and all attached resources on subscription or resource group level based on tagging.

    This can be directly imported into Azure Automation runbooks from the Azure Automation gallery:
    https://gallery.technet.microsoft.com/scriptcenter/Parallel-complete-removal-718d6dd5

    CAUTION: This solution automatically removes resources from Azure subscriptions so it is not intended to be used on production subscriptions, the author is not responsible for any misuse of this solution. You need to confirm you fully understand that this solution will remove resources from your subscription before execution

    Azure VM Resources Saver removes below VM resources from Azure subscriptions in parallel using Microsoft PowerShell Workflow technology:

    1- Any VM not tagged with one of the following tags in 'untagged' removal mode: {Keep, keep, KEEP, do not remove}Or Any VM tagged with one of the following tags in 'tagged' removal mode: {Remove, remove, REMOVE}.
    2- Boot diagnostics storage container of the removed VMs
    3- All NICs associated with the removed VMs
    4- All Public IPs associated with the removed VMs
    5- All managed and unmanaged OS disks of the removed VMs with status blobs of the unmanaged OS disks
    6- All managed and unmanaged data disks attached to the removed VMs

    VM resources preserved:
    1- Network Security Group (NSG)
    2- Virtual Network (VNET)
    3- Resource group
    4- Storage accounts of boot diagnostics and unmanaged disks

    Compatibility:

    Tested on Azure Automation with AzureRM modules updated to latest available versions as of this date 26.02.2019

  3. 140 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    8 comments  ·  Storage » General  ·  Flag idea as inappropriate…  ·  Admin →
    Waleed Raslan supported this idea  · 

Feedback and Knowledge Base