actionVMSS

delete_vmss

Delete a virtual machine scale set instance at random

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosazure.vmss.actions
Namedelete_vmss
ReturnNone

Usage

JSON

{
  "name": "delete-vmss",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosazure.vmss.actions",
    "func": "delete_vmss"
  }
}

YAML

name: delete-vmss
provider:
  func: delete_vmss
  module: chaosazure.vmss.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
filterstringnullNoFilterTarget filter selector

If the filter is omitted all virtual machine scale sets in the subscription will be selected as potential chaos candidates.

Filtering example: 'where resourceGroup=="myresourcegroup" and name="myresourcename"'

Signature

def delete_vmss(filter: str = None,
                configuration: Dict[str, Dict[str, str]] = None,
                secrets: Dict[str, Dict[str, str]] = None):
    pass