location: The location/region in which to create the account. Defaults to the resource group location.
kind: The type of account, either "StorageV2" (the default), "FileStorage" or "BlobStorage".
replication: The replication strategy for the account. The default is locally-redundant storage (LRS).
access_tier: The access tier, either "hot" or "cool", for blobs.
https_only: Whether a HTTPS connection is required to access the storage.
hierarchical_namespace_enabled: Whether to enable hierarchical namespaces, which are a feature of Azure Data Lake Storage Gen 2 and provide more a efficient way to manage storage. See 'Details' below.
properties: A list of other properties for the storage account.
... Other named arguments to pass to the az_storage initialization function.
Details
This method deploys a new storage account resource, with parameters given by the arguments. A storage account can host multiple types of storage:
blob storage
file storage
table storage
queue storage
Azure Data Lake Storage Gen2
Accounts created with kind = "BlobStorage" can only host blob storage, while those with kind = "FileStorage" can only host file storage. Accounts with kind = "StorageV2" can host all types of storage. AzureStor provides an R interface to ADLSgen2, blob and file storage, while the AzureQstor and AzureTableStor packages provide interfaces to queue and table storage respectively.
Value
An object of class az_storage representing the created storage account.
Examples
## 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 accountrg$create_storage_account("mystorage", kind="StorageV2")# create a blob storage account in a different regionrg$create_storage_account("myblobstorage", location="australiasoutheast", kind="BlobStorage")## End(Not run)