'Makes an Azure API call to get the list of virtual machines
associated with a cloud service.'

def add_deployments(self, cloud_service):

    try:
        for deployment in self.sms.get_hosted_service_properties(cloud_service.service_name, embed_detail=True).deployments.deployments:
            self.add_deployment(cloud_service, deployment)
    except Exception as e:
        sys.exit('Error:    Failed    to    access    deployments    -    {0}'.format(str(e)))
