0.1.112 • Published 1 year ago

@azbake/ingredient-availability-set v0.1.112

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Changelogs

Overview

The Availability Set ingredient is a plugin for Bake. When included in a recipe, this will create an availability set for redundancy for your application.

Usage

Recipe

name: My package
shortName: mypkg
version: 1.0.0
ingredients:
  - "@azbake/ingredient-availability-set@~0"
resourceGroup: true
rgOverride: "resourcegroup1"
parallelRegions: false
recipe:
  availset:
    properties:
      type: "@azbake/ingredient-availability-set"
      parameters:
        name: "[availutils.create_resource_name()]"
        faultDomains: "2"
        updateDomains: "5"
        sku: "Aligned"
propertyrequireddescription
nameyesName for the availability set resource
faultDomainsnoNumber of fault domains to use (Default: 2)
updateDomainsnoNumber of update domains to use (Default 5)
skunoUse Aligned (managed) or Classic (unmanaged) disks; available values Aligned, Classic (Default: Aligned)
locationnoSets the location. Defaults to the parent resource group location.

Utilities

Utility classes can be used inside of the bake.yaml file for parameter and source values.

availutils class

functiondescription
create_resource_name()Creates a name for the availability set in the format <environment_name><region_code>avail<pkg_shortname>.

Function Details

create_resource_name()

Creates a name for the availability set in the format <environment_name><region_code>avail<pkg_shortname>

...
parameters:
  name: "[availutils.create_resource_name()]"
...

Returns

string

get_fault_domain_count()

Gets the number fault domains for the availability set

...
  let faultCount: number = await availutils.get_fault_domain_count()
...

Returns

number

get_update_domain_count()

Gets the number update domains for the availability set

...
let updateCount: number = await availutils.get_update_domain_count()
...

Returns

number

0.1.112

1 year ago

0.1.111

1 year ago

0.1.110

2 years ago

0.1.107

2 years ago

0.1.106

2 years ago

0.1.109

2 years ago

0.1.108

2 years ago

0.1.105

2 years ago

0.1.104

4 years ago

0.1.103

4 years ago

0.1.102

4 years ago

0.1.101

4 years ago

0.1.100

4 years ago

0.1.99

4 years ago

0.1.98

4 years ago

0.1.97

4 years ago

0.1.96

4 years ago

0.1.95

4 years ago

0.1.90

4 years ago

0.1.87

4 years ago

0.1.75

5 years ago

0.1.68

5 years ago

0.1.67

5 years ago

0.1.64

5 years ago

0.1.61

5 years ago

0.1.59

5 years ago

0.1.57

5 years ago