@staticmethod
def get_status(instance):
    """
        Returns the power status (or the provisioning state) of the VM:
        https://docs.microsoft.com/en-us/azure/virtual-machines/windows/states-lifecycle
        starting | running | stopping | stopped | deallocating | deallocated
        """
    status = instance['instance_view']['statuses']
    if len(status) > 1:
        status = status[1]['display_status']
    else:
        status = status[0]['display_status']
    return status.split()[-1].lower()
