App Gateway Provisioned State Failed

Claire Morgan 21 Reputation points
2025-04-01T14:58:50.79+00:00

We have a pre-existing app gateway (standard, V1) which has been working fine until some time around or just before 11th March when both servers in the backend pool were being reported as unhealthy and unreachable

We removed the servers from the pool and tried to re-add them but we're getting an error of "Network interface provisioning state is failed." when trying to add the VM's

The VM's and NIC's are fine, they are being used on another app gateway (and have been for some time) without issue, the services running on both of the servers is reachable via URL directly to each server.

As well as the error when trying to add the NIC's, the app gateway is sitting in a "failed" provisioned state, I'm unable to make any changes to it at all, everything results in an "internal error". I also created a new NIC and assigned it as a secondary on one of the servers, this does not show the same error as the other NIC's but there is still the internal error when trying to save the changes.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,172 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Venkat V 1,485 Reputation points Microsoft External Staff
    2025-04-09T05:30:51.59+00:00

    Hi @Claire Morgan,

    As I understand, you have created a new Application Gateway and successfully attached the NICs. However, the configuration is failing during certificate upload.

    The error Data for certificate ... is invalid is getting while uploading the certificate to the application gateway is due to the following reason:

    • The certificate file is malformed or not in PFX format.
    • The password provided is wrong or missing.
    • The name contains invalid characters (some special chars are not allowed).

    User's image

    User's image

    https://learn.microsoft.com/en-us/azure/application-gateway/end-to-end-ssl-portal#add-authenticationroot-certificates-of-backend-servers

    You can try uploading the certificate using the following CLI command:

    az network application-gateway ssl-cert create -g MyResourceGroup --gateway-
    name MyAppGateway -n MySSLCert --cert-file FilePath --cert-password Abc123
    

    If you are using a self-signed certificate, you can generate a new certificate and upload it again by following this documentation: Configure an Application Gateway with TLS termination using the Azure portal

    Reference:
    Configure end to end TLS by using Application Gateway with PowerShell
    Create an application gateway configuration object

    I hope this helps to resolve your issue. Please feel free to ask any questions if the solution provided isn't helpful.

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.