new(token, subscription, id, ...)
: Initialize a resource group object. See 'Initialization' for more details.
delete(confirm=TRUE)
: Delete this resource group, after a confirmation check. This is asynchronous: while the method returns immediately, the delete operation continues on the host in the background. For resource groups containing a large number of deployed resources, this may take some time to complete.
sync_fields()
: Synchronise the R object with the resource group it represents in Azure.
list_templates(filter, top)
: List deployed templates in this resource group. filter
and top
are optional arguments to filter the results; see the Azure documentation for more details. If top
is specified, the returned list will have a maximum of this many items.
get_template(name)
: Return an object representing an existing template.
deploy_template(...)
: Deploy a new template. See 'Templates' for more details. By default, AzureRMR will set the createdBy
tag on a newly-deployed template to the value AzureR/AzureRMR
.
delete_template(name, confirm=TRUE, free_resources=FALSE)
: Delete a deployed template, and optionally free any resources that were created.
get_resource(...)
: Return an object representing an existing resource. See 'Resources' for more details.
create_resource(...)
: Create a new resource. By default, AzureRMR will set the createdBy
tag on a newly-created resource to the value AzureR/AzureRMR
.
delete_resource(..., confirm=TRUE, wait=FALSE)
: Delete an existing resource. Optionally wait for the delete to finish.
resource_exists(...)
: Check if a resource exists.
list_resources(filter, expand, top)
: Return a list of resource group objects for this subscription. filter
, expand
and top
are optional arguments to filter the results; see the Azure documentation for more details. If top
is specified, the returned list will have a maximum of this many items.
do_operation(...)
: Carry out an operation. See 'Operations' for more details.
set_tags(..., keep_existing=TRUE)
: Set the tags on this resource group. The tags can be either names or name-value pairs. To delete a tag, set it to NULL
.
get_tags()
: Get the tags on this resource group.
create_lock(name, level)
: Create a management lock on this resource group (which will propagate to all resources within it).
get_lock(name)
: Returns a management lock object.
delete_lock(name)
: Deletes a management lock object.
list_locks()
: List all locks that apply to this resource group. Note this includes locks created at the subscription level, and for any resources within the resource group.
add_role_assignment(name, ...)
: Adds a new role assignment. See 'Role-based access control' below.
get_role_assignment(id)
: Retrieves an existing role assignment.
remove_role_assignment(id)
: Removes an existing role assignment.
list_role_assignments()
: Lists role assignments.
get_role_definition(id)
: Retrieves an existing role definition.
list_role_definitions()
Lists role definitions.