code: def _get_management_client(self, client_class):
          
          try:
              client = get_client_from_auth_file(
                  client_class, auth_path=self.service_account_file
              )
          except ValueError as error:
              raise AzureCloudException(
                  'Service account file format is invalid: {0}.'.format(error)
              )
          except KeyError as error:
              raise AzureCloudException(
                  'Service account file missing key: {0}.'.format(error)
              )
          except Exception as error:
              raise AzureCloudException(
                  'Unable to create resource management client: '
                  '{0}.'.format(error)
              )
  
          return client
docs: Return instance of resource management client.