setAzureContext: Updates azureActiveContext object.

Description Usage Arguments See Also

View source: R/AzureContextObject.R

Description

Updates the value of an 'azureActiveContext' object, created by [createAzureContext()]

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
setAzureContext(
  azureActiveContext,
  tenantID,
  clientID,
  authKey,
  subscriptionID,
  resourceGroup,
  storageKey,
  storageAccount,
  container,
  blob,
  vmName,
  hdiAdmin,
  hdiPassword,
  clustername,
  kind,
  sessionID,
  authType,
  resource
)

Arguments

azureActiveContext

A container used for caching variables used by 'AzureSMR', created by [createAzureContext()]

tenantID

The tenant ID provided during creation of the Active Directory application / service principal

clientID

The client ID provided during creation of the Active Directory application / service principal

authKey

The authentication key provided during creation of the Active Directory application / service principal

subscriptionID

Subscription ID. This is obtained automatically by [azureAuthenticate()] when only a single subscriptionID is available via Active Directory

resourceGroup

Name of the resource group

storageKey

Storage key associated with storage account

storageAccount

Name of the azure storage account. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

container

Storage container name. See [azureListStorageContainers()]

blob

Blob name

vmName

Name of the virtual machine

hdiAdmin

HDInsight admin username. See [azureCreateHDI()]

hdiPassword

HDInsight admin password. See [azureCreateHDI()]

clustername

Cluster name, used for HDI and Spark clusters. See [azureCreateHDI()]

kind

HDinsight kind: "hadoop","spark" or "rserver". See [azureCreateHDI()]

sessionID

Spark sessionID. See [azureSparkCMD()]

authType

Auth type for getting token: "ClientCredential", "DeviceCode"

resource

Resource to use for getting token

See Also

Other azureActiveContext functions: createAzureContext()


CharlesCara/AzureSMRLite documentation built on March 10, 2020, 11:52 p.m.