<s> import azurerm <EOL> import json <EOL> try : <EOL> with open ( '<STR_LIT>' ) as configFile : <EOL> configData = json . load ( configFile ) <EOL> except FileNotFoundError : <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> tenant_id = configData [ '<STR_LIT>' ] <EOL> app_id = configData [ '<STR_LIT>' ] <EOL> app_secret = configData [ '<STR_LIT>' ] <EOL> subscription_id = configData [ '<STR_LIT>' ] <EOL> access_token = azurerm . get_access_token ( tenant_id , app_id , app_secret ) <EOL> locations = azurerm . list_locations ( access_token , subscription_id ) <EOL> for location in locations [ '<STR_LIT:value>' ] : <EOL> print ( location [ '<STR_LIT:name>' ] <EOL> + '<STR_LIT>' + location [ '<STR_LIT>' ] <EOL> + '<STR_LIT>' + location [ '<STR_LIT>' ] <EOL> + '<STR_LIT:U+002CU+0020>' + location [ '<STR_LIT>' ] ) </s>
