Learn R Programming

SAR (version 1.0.3)

delete_rec_service: Delete an Azure recommender service

Description

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

Value

NULL on successful deletion.

Usage

delete_rec_service(name, confirm = TRUE, free_resources = TRUE)

Arguments

  • name: The name of the recommender service.

  • confirm: Whether to ask for confirmation before deleting.

  • free_resources: Whether to delete the individual resources as well as the recommender template.

See Also

create_rec_service, delete_rec_service

Examples

Run this code
# NOT RUN {
rg <- AzureRMR::az_rm$
    new(tenant="myaadtenant.onmicrosoft.com", app="app_id", password="password")$
    get_subscription("subscription_id")$
    get_resource_group("rgname")

# delete a recommender service
rg$delete_rec_service("myrec")

# }

Run the code above in your browser using DataLab