def setUp(self):
try:<EOL><INDENT>with open('<STR_LIT>') as config_file:<EOL><INDENT>config_data = json.load(config_file)<EOL><DEDENT><DEDENT>except FileNotFoundError:<EOL><INDENT>sys.exit("<STR_LIT>")<EOL><DEDENT>tenant_id = config_data['<STR_LIT>']<EOL>app_id = config_data['<STR_LIT>']<EOL>app_secret = config_data['<STR_LIT>']<EOL>self.subscription_id = config_data['<STR_LIT>']<EOL>self.access_token = azurerm.get_access_token(tenant_id, app_id, app_secret)<EOL>
Load Azure app defaults