Hello Pawel Niemczyk,
At this point with given information, we suspect that error code 501 "Failed to retrieve certificate from key vault using app service" is either due to key vault access permission issue or a misconfiguration in the certificate retrieval process.
To fix the key vault access permission issue :
- The Network Service account may not have sufficient permissions to access the certificate store or Key Vault. The Local System change you made suggests a permissions issue.
- Ensure proper delegation is configured for the Windows Admin Center gateway to access required resources.
- If you're using Azure Key Vault integration, ensure the Key Vault extension is properly configured with the correct authentication settings.
To fix the certificate retrieval process :
Consider using the standard self-signed certificate approach instead of Key Vault retrieval.
- Use
SSL_CERTIFICATE_OPTION=generate
during WAC installation. - Export and import the generated certificate to establish trust.