Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 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