delete_vm: Delete virtual machine

Description Usage Arguments Details See Also Examples

Description

Method for the AzureRMR::az_subscription and AzureRMR::az_resource_group classes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## R6 method for class 'az_resource_group'
delete_vm(name, confirm = TRUE, free_resources = TRUE)

## R6 method for class 'az_subscription'
delete_vm(name, confirm = TRUE, free_resources = TRUE,
          resource_group = name)

## R6 method for class 'az_resource_group'
delete_vm_scaleset(name, confirm = TRUE, free_resources = TRUE)

## R6 method for class 'az_subscription'
delete_vm_scaleset(name, confirm = TRUE, free_resources = TRUE,
                  resource_group = name)

Arguments

Details

For the subscription methods, deleting the VM or scaleset will also delete its resource group.

See Also

create_vm, az_vm_template, az_vm_resource, AzureRMR::az_subscription, AzureRMR::az_resource_group

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

sub <- AzureRMR::get_azure_login()$
    get_subscription("subscription_id")

sub$delete_vm("myvm")
sub$delete_vm_scaleset("myscaleset")


## End(Not run)

AzureVM documentation built on Oct. 23, 2020, 5:20 p.m.