def __create_cloud_service(self):
        cloud_service_request_id = self.cloud_service.create(
            self.command_args['--cloud-service-name'],
            self.config.get_region_name()
        )
        if cloud_service_request_id > 0:
            # a new cloud service was created for this instance, waiting
            # for the cloud service to become created. Basically we try
            # to prevent blocking, thus this is an exception to other
            # requests
            request_result = RequestResult(cloud_service_request_id)
            request_result.wait_for_request_completion(
                self.cloud_service.service
            )
dataset/ETHPy150Open SUSE/azurectl/azurectl/commands/compute_vm.py/ComputeVmTask.__create_cloud_service/original