Delete

Estimated reading: 3 minutes 989 views

The Delete VM operation is used to remove an existing virtual machine (VM) from the Azure environment. This operation can also handle associated resources such as disks and snapshots based on the specified properties.

Properties

INPUT

DeleteAssociatedDisks: Indicates whether to delete the disks associated with the virtual machine along with the VM. When checked (true), all disks attached to the VM will be deleted. If unchecked (false), the disks will not be deleted and will remain in the resource group.

DeleteSnapshots: Indicates whether to delete any snapshots associated with the VM’s disks. When checked (true), all snapshots linked to the VM’s disks will be deleted. If unchecked (false), the snapshots will remain in the resource group.

WaitForCompletion: Indicates whether to wait for the deletion process to complete before returning control. When checked (true), the system will wait until the VM and specified resources are fully deleted before completing the operation. If unchecked (false), the system will return immediately after initiating the delete request, and you will need to manually check the status.

VirtualMachineName*: Specifies the name of the virtual machine you want to delete. This field supports only strings and String variables.

WaitIntervalSeconds: Specifies the interval (in seconds) between checks for completion if WaitForCompletion is enabled. This field allows the system to poll for the deletion status at regular intervals until the operation is complete.

MISC

DisplayName: The display name of the activity or operation. This field supports only strings and String variables.

SkipOnError: Specify the “Boolean” value as “True” or “False.”

True: Continue executing the workflow regardless of any errors thrown.
False: Halt the workflow if it encounters any errors.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.

VersionIndicates the version of the activity.

OUTPUT

Result: Provides the success status of the operation. This field indicates whether the VM and specified resources were successfully deleted or if there were any issues during the operation.

Represents mandatory fields to execute the workflow

Notes

1. Ensure that you understand the implications of deleting associated disks and snapshots, as this action is irreversible.
2. The WaitForCompletion property controls whether the system will wait for the entire delete process to finish. If enabled, the system will check for completion at intervals specified by WaitIntervalSeconds.
3. Deleting a VM will remove it and potentially its associated resources, so ensure that any important data is backed up before performing the delete operation.

Share this Doc

Delete

Or copy link

CONTENTS