Path: blob/master/src/SentinelUtilities/SentinelUtils/config_reader.py
3255 views
# -------------------------------------------------------------------------1# Copyright (c) Microsoft Corporation. All rights reserved.2# Licensed under the MIT License. See License.txt in the project root for3# license information.4# --------------------------------------------------------------------------5"""6Config Reader:7This module is used to read JSON config file populated by Azure Notebooks API.8"""910import json1112# pylint: disable-msg=R090313class ConfigReader:14""" class to read configuration """1516# pylint: disable-msg=E021317def read_config_values(file_path):18""" read configuration """19with open(file_path) as json_file:20if json_file:21json_config = json.load(json_file)22return (json_config["tenant_id"],23json_config["subscription_id"],24json_config["resource_group"],25json_config["workspace_id"],26json_config["workspace_name"])27return None282930