Learn R Programming

AzureContainers (version 1.0.2)

aci: Azure Container Instance class

Description

Class representing an Azure Container Instance (ACI) resource.

Usage

aci

Arguments

Format

An object of class R6ClassGenerator of length 24.

Methods

The following methods are available, in addition to those provided by the AzureRMR::az_resource class:

  • new(...): Initialize a new ACI object.

  • restart(), start(): Start a stopped container. These methods are synonyms for each other.

  • stop(): Stop a container.

Details

Initializing a new object of this class can either retrieve an existing ACI resource, or create a new resource on the host. Generally, the best way to initialize an object is via the get_aci, create_aci or list_acis methods of the az_resource_group class, which handle the details automatically.

See Also

acr, aks

ACI documentation and API reference

Docker commandline reference

Examples

Run this code
# NOT RUN {
# recommended way of retrieving a container: via a resource group object
rg <- AzureRMR::az_rm$
    new(tenant="myaadtenant.onmicrosoft.com", app="app_id", password="password")$
    get_subscription("subscription_id")$
    get_resource_group("rgname")

myaci <- rg$get_aci("mycontainer")

myaci$stop()
myaci$restart()

# }

Run the code above in your browser using DataLab