Exemple #1
0
 def network_client(self):
     self.log('Getting network client')
     if not self._network_client:
         self.check_client_version('network', network_client_version, AZURE_EXPECTED_VERSIONS['network_client_version'])
         self._network_client = NetworkManagementClient(self.azure_credentials, self.subscription_id)
         self._register('Microsoft.Network')
     return self._network_client
Exemple #2
0
 def network_client(self):
     self.log('Getting network client')
     if not self._network_client:
         self._network_client = NetworkManagementClient(
             self.azure_credentials, self.subscription_id)
         self._register('Microsoft.Network')
     return self._network_client
Exemple #3
0
 def network_client(self):
     self.log('Getting network client')
     if not self._network_client:
         config = NetworkManagementClientConfiguration(self.azure_credentials, self.subscription_id)
         config.add_user_agent(ANSIBLE_USER_AGENT)
         self._network_client = NetworkManagementClient(config)
         self._register('Microsoft.Network')
     return self._network_client