def validate_vm_set_type(namespace):
    'Validates the vm set type string.'
    if (namespace.vm_set_type is not None):
        if (namespace.vm_set_type == ''):
            return
        if ((namespace.vm_set_type.lower() != 'availabilityset') and (namespace.vm_set_type.lower() != 'virtualmachinescalesets')):
            raise CLIError('--vm-set-type can only be VirtualMachineScaleSets or AvailabilitySet')
Validates the vm set type string.
def validate_vm_set_type(namespace):
    
    if (namespace.vm_set_type is not None):
        if (namespace.vm_set_type == ):
            return
        if ((namespace.vm_set_type.lower() != 'availabilityset') and (namespace.vm_set_type.lower() != 'virtualmachinescalesets')):
            raise CLIError('--vm-set-type can only be VirtualMachineScaleSets or AvailabilitySet')