def main():
<EOL>if len(sys.argv) < <NUM_LIT:4>:<EOL><INDENT>usage()<EOL><DEDENT>rgname = sys.argv[<NUM_LIT:1>]<EOL>vmss_name = sys.argv[<NUM_LIT:2>]<EOL>capacity = sys.argv[<NUM_LIT:3>]<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>print("<STR_LIT>")<EOL>sys.exit()<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>scaleoutput = azurerm.scale_vmss(access_token, subscription_id, rgname, vmss_name, capacity)<EOL>print(scaleoutput.text)<EOL>
main routine