code: def main():
      '''main routine'''
  
      # process arguments
      if len(sys.argv) < 4:
          usage()
  
      rgname = sys.argv[1]
      vmss_name = sys.argv[2]
      capacity = sys.argv[3]
  
      # Load Azure app defaults
      try:
          with open('azurermconfig.json') as config_file:
              config_data = json.load(config_file)
      except FileNotFoundError:
          print("Error: Expecting azurermconfig.json in current folder")
          sys.exit()
  
      tenant_id = config_data['tenantId']
      app_id = config_data['appId']
      app_secret = config_data['appSecret']
      subscription_id = config_data['subscriptionId']
  
      access_token = azurerm.get_access_token(tenant_id, app_id, app_secret)
  
      scaleoutput = azurerm.scale_vmss(access_token, subscription_id, rgname, vmss_name, capacity)
      print(scaleoutput.textf main():
      '''main routine'''
  
      # process arguments
      if len(sys.argv) < 4:
          usage()
  
      rgname = sys.argv[1]
      vmss_name = sys.argv[2]
      capacity = sys.argv[3]
  
      # Load Azure app defaults
      try:
          with open('azurermconfig.json') as config_file:
              config_data = json.load(config_file)
      except FileNotFoundError:
          print("Error: Expecting azurermconfig.json in current folder")
          sys.exit()
  
      tenant_id = config_data['tenantId']
      app_id = config_data['appId']
      app_secret = config_data['appSecret']
      subscription_id = config_data['subscriptionId']
  
      access_token = azurerm.get_access_token(tenant_id, app_id, app_secret)
  
      scaleoutput = azurerm.scale_vmss(access_token, subscription_id, rgname, vmss_name, capacity)
      print(scaleoutput.text)
docs: main routine