Case 1: Virtual Service Down with AdalError: Get Token request returned http error: 401 and server response
reason: AdalError: Get Token request returned http error: 401 and server response:
{"error":"invalid_client","error_description":"AADSTS7000222: The provided client secret keys for app '####' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds.
"error_uri":"https://login.microsoftonline.com/error?code=7000222"}Case 2: The AVI controller cluster VIP show Red (Down).
You will see the below error in the /var/lib/avi/log/cluster_config.log
Azure Cloud
Azure Cloud Connector User Authentication using with Application ID based
For Case 1:
The Azure AD App Registration (ID: ####) used by the Avi Load Balancer's Azure Cloud Connector has an expired client secret. This causes ADAL token requests to fail with Error Code : AADSTS7000222, taking the virtual service <name> (VIP <IP>) down.
For Case 2:
You will see the below error under the /var/lib/avi/log/cluster_config.log
[2026-04-13 05:46:25,151] INFO [maintenance.manage_vip_operations:342] Got cluster config. cvip: ##.##.##.##. cvip6: None[2026-04-13 05:46:25,161] INFO [cluster_utils.check_if_configure_cluster_vip6_needed:1075] Configured cvip6: None. New cvip6: None[2026-04-13 05:46:25,336] ERROR [azure_cluster_vip.manage_azure_cluster_vip:159] ^[[31mFailed to load azure credentials: Traceback (most recent call last):
oauthlib.oauth2.rfc6749.errors.InvalidClientError: (invalid_client) AADSTS7000222: The provided client secret keys for app '######-####-####-####-########' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: ########-####-####-####-######## Correlation ID: ######-####-####-####-######## Timestamp: 2026-04-13 05:46:25Z
Rotate the Secret in Azure Portal
Now Update the Avi Controller Azure CloudConnector User
Verify Recovery
VIP_DOWN back to UP once the new secret is authenticated successfully