def _get_provisioning_state(instance):
    """Return the provisioning state from the instance result if present."""
    if instance.get('provisioning_state'):
        return instance.get('provisioning_state')
    elif instance.get('properties'):
        return instance.get('properties').get('provisioning_state')
    else:
        return