# NOT RUN {
# start a new Resource Manager session
az <- az_rm$new(tenant="myaadtenant.onmicrosoft.com", app="app_id", password="password")
# authenticate with credentials in a file
az <- az_rm$new(config_file="creds.json")
# authenticate with device code
az <- az_rm$new(tenant="myaadtenant.onmicrosoft.com", app="app_id", auth_type="device_code")
# retrieve a list of subscription objects
az$list_subscriptions()
# a specific subscription
az$get_subscription("subscription_id")
# }
Run the code above in your browser using DataLab