def network_client(self): self.log('Getting network client') if not self._network_client: self._network_client = NetworkManagementClient( self.azure_credentials, self.subscription_id, base_url=self._cloud_environment.endpoints.resource_manager, api_version='2017-06-01' ) self._register('Microsoft.Network') return self._network_client