def compute_client(self): self.log('Getting compute client') if not self._compute_client: self.check_client_version('compute', compute_client_version, AZURE_EXPECTED_VERSIONS['compute_client_version']) self._compute_client = ComputeManagementClient(self.azure_credentials, self.subscription_id) self._register('Microsoft.Compute') return self._compute_client
def compute_client(self): self.log('Getting compute client') if not self._compute_client: self._compute_client = ComputeManagementClient( self.azure_credentials, self.subscription_id) self._register('Microsoft.Compute') return self._compute_client
def compute_client(self): self.log('Getting compute client') if not self._compute_client: config = ComputeManagementClientConfiguration(self.azure_credentials, self.subscription_id) config.add_user_agent(ANSIBLE_USER_AGENT) self._compute_client = ComputeManagementClient(config) self._register('Microsoft.Compute') return self._compute_client