def main():
<EOL>if len(sys.argv) < <NUM_LIT:3>:<EOL><INDENT>usage()<EOL><DEDENT>rgname = sys.argv[<NUM_LIT:1>]<EOL>vmss_name = sys.argv[<NUM_LIT:2>]<EOL>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>subscription_id = config_data['<STR_LIT>']<EOL>access_token = azurerm.get_access_token(tenant_id, app_id, app_secret)<EOL>print('<STR_LIT>')<EOL>vmssget = azurerm.get_vmss(<EOL>access_token, subscription_id, rgname, vmss_name)<EOL>name = vmssget['<STR_LIT:name>']<EOL>capacity = vmssget['<STR_LIT>']['<STR_LIT>']<EOL>location = vmssget['<STR_LIT:location>']<EOL>offer =vmssget['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']<EOL>sku = vmssget['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']<EOL>print(json.dumps(vmssget, sort_keys=False, indent=<NUM_LIT:2>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL>print('<STR_LIT>' + name + '<STR_LIT>' + str(capacity) + '<STR_LIT:U+002CU+0020>' + location + '<STR_LIT:U+002CU+0020>' + offer + '<STR_LIT:U+002CU+0020>'<EOL>+ sku)<EOL>print('<STR_LIT>')<EOL>instance_view = azurerm.get_vmss_instance_view(<EOL>access_token, subscription_id, rgname, vmss_name)<EOL>print(json.dumps(instance_view, sort_keys=False,<EOL>indent=<NUM_LIT:2>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL>'''<STR_LIT>'''<EOL>
Main routine.