Learn R Programming

AzureSMR

R Package for managing a selection of Azure resources. Targeted at Data Scientists who need to control Azure Resources within an R session without needing to bother system administrators.

APIs include Storage Blobs, HDInsight(Nodes, Hive, Spark), ARM, VMs.

To understand more on how to use the APIs please check out the Vigntess

Tutorial

Getting Authenticated

There is also help pages within the package that can be accessed from IDEs like RStudio. Just type AzureSM into search when the package is loaded to see a list of functions/help pages.

Note: The package leverages standard R packages such as HTTR JSONLITE. So it can run in any RSession.

Copy Link

Version

Version

0.1

License

GPL-3

Maintainer

Alan Weaver

Last Published

February 19th, 2019

Functions in AzureSM (0.1)

AzureSM: AzureBlobFind

Find File in a Storage account directory
AzureSM: AzureBlobLS

List Blob files in a Storage account directory
AzureSM: AzureListAllRecources

Get all Resource in default Subscription
AzureSM: AzureListHDI

Get all HDInsight Clusters in default Subscription or details for a specified ClusterName
AzureSM: AzurePutBlob

Write contents to a specifed Storage Blob
AzureSM: AzureResizeHDI

Resize a HDInsight CLuster Role
AzureSM: AzureCreateSAContainer

Create Storage Containers in a specified Storage Account
AzureSM: AzureDeleteHDI

Delete Specifed HDInsight Cluster
AzureSM: AzureGetBlob

Get contents from a specifed Storage Blob
AzureSM: AzureHDIConf

Get Configuration Information for a specified ClusterName
AzureSM: AzureListSABlobs

List Storage Containers for Specified Storage Account
AzureSM: AzureListSAContainers

List Storage Containers for Specified Storage Account
AzureSM: AzureSparkCMD

Send Spark Statements/comamnds (REPL/Interactive mode)
AzureSM: AzureSparkJob

Submit Spark Job (Batch mode)
AzureSM: AzureAuthenticate

Authenticates against Azure Active Directory application
AzureSM: AzureBlobCD

Azure Blob change current Directory
AzureSM: AzureDeleteVM

Delete a Virtual Machine
AzureSM: AzureDeployTemplate

Submit a Azure Resource ManagerTemplate
AzureSM: AzureDeleteDeploy

Delete Template Deployment
AzureSM: AzureDeployStatus

Check Template DeployStatus
AzureSM: AzureSparkListJobs

List Spark Jobs (Batch mode)
AzureSM: AzureSparkListSessions

List Spark Sessions
AzureSM: AzureSparkNewSession

Create new Spark Session
AzureSM: AzureSparkShowURL

Show Spark Log Output
CreateAzureContext

AzureSM: Create an AzureContext
DumpAzureContext

AzureSM: Dumps the contents of the AzureContext
SetAzureContext

AzureSM: Updates the value of an AzureContext variable
AzureSM:

Create Specifed HDInsight Cluster
AzureCreateResourceGroup: AzureListAllRecources

Create a ResourceGroup
AzureSM: AzureHiveSQL

Submit SQL command to Hive Service
AzureSM: AzureHiveStatus

Get Status of a HDI Hive Service/Version
AzureSM: AzureSAGetKey

Get the Storage Keys for Specified Storage Account
AzureSM: AzureCheckToken

Check the timestamp of a Token and Renew if needed.
AzureDeleteResourceGroup: AzureListAllRecources

Delete a ResourceGroup with all Resources
AzureSM: AzureDeleteSAContainer

Delete Storage Container in a specified Storage Account
AzureSM: AzureListRG

Get all Resource Groups in default Subscription
AzureSM: AzureListSA

List Storage accounts
AzureSM: AzureListSubscriptions

Get available Subscriptions
AzureSM: AzureListVM

Start a Virtual Machine
AzureSM: AzureStopVM

Stop a Virtual Machine
AzureSM: AzureVMStatus

Get Status of a Virtual Machine
AzureSM: AzureSparkStopSession

Stop a Spark Sessions