How to debug a Portnox Docker container in Azure Container Instances
In this topic, you will learn how to debug your local RADIUS or local TACACS+ server in Azure Container Instances (ACI).
Troubleshoot in the Azure Console
In this section, you will learn how to temporarily turn on the debug mode using the Azure Console, which lets you capture debug logs during the current session without the need to redeploy the container instance.
- Navigate to your container instance in the Azure portal.
- In the left-hand side menu, go to: .
- In the right-hand side panel, click on the Connect tab.
- In the Choose Start Up Command window, click on the Connect button.
-
Enter the command to turn on debug mode for this session:
- Local RADIUS:
/local-radius-init.sh --debug - Local TACACS+:
/app/tacacs-server -container-mode -debug
- Local RADIUS:
Activate the debug mode in Azure Container Instances
In this section, you will learn how to activate the debug mode in Azure Container Instances for the local RADIUS and local TACACS+ servers.
- Local RADIUS in Azure Container Instances: Create a container instance
- Local TACACS+ in Azure Container Instances: Create a container instance (note: temporarily not working, bugfix coming soon)
Result: Your Azure logs will now contain debug information.
View the debug logs in the Azure portal
In this topic, you will learn how to view the Azure Container Instances logs after you activate the debug mode.
- Navigate to your container instance in the Azure portal.
- In the left-hand side menu, go to: .
- In the right-hand side panel, click on the Logs tab.
Download the debug logs in the Azure portal
In this topic, you will learn how to download the Azure Container Instances logs, which allows you to see more history information.
- Navigate to your container instance in the Azure portal.
- In the left-hand side menu, go to: .
-
If you don’t have a predefined query or Log Analytics set up:
- Close the Queries hub window.
- Click on the Tables icon.
- Expand the Custom Logs category.
- Select ContainerInstanceLog_CL.
- Set your desired time range and data size to generate the logs.
- Once the logs are generated, click on the Share button in the top-right corner and then select the Export to CSV (all columns) option.
