'Implements interface.'

def validate_options(self, options):

    options.azure_account_enabled = (options.azure_account_subscription_id is not None)
    if (not options.azure_account_enabled):
        return
    if ((options.azure_account_packer_resource_group != None) != (options.azure_account_packer_storage_account != None)):
        raise ValueError('--azure_account_packer_resource_group    and    --azure_account_packer_storage_account    must    either    both    be    set    or    neither    be    set.')
    for name in ['client_id', 'credentials', 'subscription_id', 'tenant_id', 'default_key_vault', 'default_resource_group']:
        key = ('azure_account_' + name)
        if (not getattr(options, key)):
            raise ValueError('--{0}    is    required    with    --azure_account_subscription_id.'.format(key))
