AKSProvider: Create an AKS provider object

Description Usage Arguments Value Examples

View source: R/AKSProvider-method.R

Description

Create an AKS provider object, you must have a login cache made by AzureRMR::create_azure_login before you call this function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
AKSProvider(
  k8sCluster = NULL,
  poolName = "akspool",
  AKSName = Sys.getenv("AZ_AKS_NAME"),
  resourceGroupName = Sys.getenv("AZ_RESOURCE_GROUP_NAME"),
  subscriptionName = Sys.getenv("AZ_SUBSCRIPTION"),
  tenant = Sys.getenv("AZ_TENANT"),
  tenantSelection = character(0),
  autoDelete = NULL
)

Arguments

k8sCluster

KubernetesCluster, the K8S cluster object from the package AzureContainers

poolName

Character(1), the name of the node pool. This parameter will only be used when the k8s cluster does not exist and need to be created.

AKSName

Character(1), the Azure Kubernetes service name

resourceGroupName

Character(1), the resource group name. If empty, the function will print a menu and ask you to choose one.

subscriptionName

Character(1), the subscription name. If empty, the function will print a menu and ask you to choose one.

tenant

Character(1), the tenant you want to use. This argument will be passed to AzureRMR::get_azure_login to get the ARM login client.

tenantSelection

Character(1), if you have multiple logins for a given tenant, which one to use. This can be a number, or the input MD5 hash of the token used for the login (You can find them via AzureRMR::list_azure_logins()). If not supplied, we will print a menu and ask you to choose a login.

autoDelete

Logical(1), whether the kubernetes cluster should be deleted when the DockerCluster object has been removed from the workspace? If NULL, the kubernetes cluster will only be removed if it is created by this function.

Value

An AKSProvider reference object

Examples

1
provider <- AKSProvider(tenant = "Your tenant ID")

Jiefei-Wang/AKSProvider documentation built on Dec. 18, 2021, 1:31 a.m.