createAzureContext: Create an Azure Context.

Description Usage Arguments Details Value See Also

Description

Create a container (azureActiveContext) for holding variables used by the AzureSMR package. If tenantID, clientID and authKey are provided, attempts to authenticate the session against Azure.

Usage

1
createAzureContext(tenantID, clientID, authKey, configFile, authType, resource)

Arguments

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

configFile

location of file that contains configuration in JSON format. By default, this location is at getOption("AzureSMR.config")

authType

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

resource

Resource to use for getting token

Details

See the Azure documentation (https://azure.microsoft.com/en-us/documentation/articles/resource-group-create-service-principal-portal/) for information to configure an Active Directory application.

Value

An azureActiveContext object

See Also

setAzureContext(), azureAuthenticate(), [read.AzureSMR.config)]

[read.AzureSMR.config)]: R:read.AzureSMR.config)

Other azureActiveContext functions: setAzureContext


Microsoft/AzureSMR documentation built on July 7, 2019, 11:25 p.m.