# NOT RUN {
rg <- AzureRMR::az_rm$
new(tenant="myaadtenant.onmicrosoft.com", app="app_id", password="password")$
get_subscription("subscription_id")$
get_resource_group("rgname")
# create a new storage account
rg$create_storage_account("mystorage", kind="StorageV2")
# create a blob storage account in a different region
rg$create_storage_account("myblobstorage",
location="australiasoutheast",
kind="BlobStorage")
# }
Run the code above in your browser using DataLab