build_template: Build template definition and parameters

Description Usage Arguments Details Value See Also Examples

Description

Build template definition and parameters

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'vm_config'
build_template_definition(config, ...)

## S3 method for class 'vmss_config'
build_template_definition(config, ...)

## S3 method for class 'vm_config'
build_template_parameters(config, name, login_user, size, ...)

## S3 method for class 'vmss_config'
build_template_parameters(config, name, login_user, size, instances, ...)

Arguments

config

An object of class vm_config or vmss_config representing a virtual machine or scaleset deployment.

...

Unused.

name

The VM or scaleset name. Will also be used for the domain name label, if a public IP address is included in the deployment.

login_user

An object of class user_config representing the login details for the admin user account on the VM.

size

The VM (instance) size.

instances

For vmss_config, the number of (initial) instances in the VM scaleset.

Details

These are methods for the generics defined in the AzureRMR package.

Value

Objects of class json, which are JSON character strings representing the deployment template and its parameters.

See Also

create_vm, vm_config, vmss_config

Examples

1
2
3
4
vm <- ubuntu_18.04()
build_template_definition(vm)
build_template_parameters(vm, "myubuntuvm",
    user_config("username", "~/.ssh/id_rsa.pub"), "Standard_DS3_v2")

AzureVM documentation built on Oct. 23, 2020, 5:20 p.m.