Learn R Programming

AzureSMR: Manage and Interact with Azure Resources.


AzureSMR is an R Package for managing a selection of Azure resources, using the Azure Service Manager API. The package exposes function to manage resources, resource groups, storage (blobs and containers), ARM templates, virtual machines and HDInsight (nodes, Hive and Spark). To use the package, you must configure an Azure Active Directory application and service principal in the Azure portal.

To get started with this package, see the vignettes:

To access the package help, just type ?AzureSMR into your code editor.

Technical note: The package connects to Azure using standard CRAN packages (for example httr and jsonlite). This means you can use open source R to connect to Azure - you don't need Microsoft R Server.

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct.
For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Copy Link

Version

Version

0.2.6

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Andrie de Vries

Last Published

February 19th, 2019

Functions in AzureSMR (0.2.6)

azureBlobLS

List blob blobs in a storage account directory.
azureCancelDeploy

Cancel template deployment.
azureBlobCD

Azure blob change current directory.
azureBlobFind

Find file in a storage account directory.
azureCheckToken

Check the timestamp of a token and renew if needed.
azureCreateBatchAccount

Create an azure batch account.
azureAuthenticate

Authenticates against Azure Active directory application.
azureBatchGetKey

Get the Batch Keys for Specified Batch Account.
AzureSMR

AzureSMR
as.azureActiveContext

azureActiveContext object.
azureDeleteBlob

Delete a specifed storage blob.
azureDeleteDeploy

Delete template deployment.
azureDeletestorageAccount

Delete an Azure Storage Account.
azureDataConsumption

Get data consumption of an Azure subscription for a time period. Aggregation method can be either daily based or hourly based.
azureDeleteBatchAccount

Delete an azure batch account.
azureDeleteStorageContainer

Delete Storage container in a specified Storage Account.
azureCreateHDI

Create HDInsight cluster.
azureGetAllVMstatus

List the status of every virtual machine in the azure active context.
azureDeleteHDI

Delete HDInsight cluster.
azureDeleteResourceGroup

Delete a resourceGroup with all Resources.
azureHDIConf

Get configuration information for a specified cluster name.
azureHiveSQL

Submit SQL command to Hive Service.
azureListScaleSets

List scale sets within a resource group.
azureCreateResourceGroup

Create a resourceGroup.
azureListStorageBlobs

List storage blobs for specified storage account.
azurePutBlob

Write contents to a specifed storage blob.
azureResizeHDI

Resize a HDInsight cluster role.
azureStartVM

Start a Virtual Machine.
azureStopVM

Stop a Virtual Machine.
azureDeployStatus

Check template deployment Status.
azureHiveStatus

Get Status of a HDI Hive Service / version.
azureListAllResources

Get all Resource in default Subscription.
azureListVM

List VMs in a Subscription.
azurePricingRates

Get pricing details of resources under a subscription.
azureDeleteVM

Delete a Virtual Machine.
azureListScaleSetNetwork

List load balancers and ip addresses in a resource group
azureListScaleSetVM

List VMs within a scale set
azureRunScriptAction

Run script action on HDI cluster.
azureSAGetKey

Get the Storage Keys for Specified Storage Account.
azureCreateStorageAccount

Create an Azure Storage Account.
azureCreateStorageContainer

Create Storage containers in a specified Storage Account.
azureDeployTemplate

Deploy a resource from an Azure Resource Manager (ARM) template.
azureExpenseCalculator

Calculate cost of using a specific instance of Azure for certain period.
azureSparkShowURL

Show Spark log Output.
azureSparkStopSession

Stop a Spark Sessions.
azureVMStatus

Get Status of a Virtual Machine.
createAzureContext

Create an Azure Context.
dumpAzureContext

Dumps out the contents of the AzureContext.
read.AzureSMR.config

Reads settings from configuration file in JSON format.
azureListRG

Get all resource groups in subscription ID.
azureListSA

List storage accounts.
azureListStorageContainers

List Storage containers for Specified Storage Account.
azureListSubscriptions

Get available subscriptions.
azureGetBlob

Get contents from a specifed storage blob.
azureListBatchAccounts

List batch accounts.
azureListHDI

Get all HDInsight Clusters in default Subscription or details for a specified cluster name.
azureScriptActionHistory

Get all HDInsight script action history for a specified cluster name.
azureSparkListSessions

List Spark Sessions.
azureSparkNewSession

Create new Spark Session.
azureSparkCMD

Send Spark Statements/comamnds (REPL/Interactive mode).
azureSparkJob

Submit Spark Job (Batch mode).
azureSparkListJobs

List Spark Jobs (Batch mode).
setAzureContext

Updates azureActiveContext object.