Hi,
Thank you for giving us your problem.
Based on the URL provided (https://weu.codesigning.azure.net/), you are utilizing Azure Trusted Signing (formerly Azure Code Signing). You could follow troubleshooting steps below to resolve this failure.
- Verify Role-Based Access Control (RBAC)
The most frequent cause of a 403 error in Trusted Signing is the absence of the specific RBAC role required for the signing operation.
Requirement: The identity (User or Service Principal) used to generate the access token must be assigned the Trusted Signing Certificate Profile Signer role.
- Navigate to your Trusted Signing Account in the Azure Portal.
- Select Certificate Profiles and click on InquirementCodeSignCertificateProfile.
- Under Access Control (IAM), ensure your identity is listed as a "Trusted Signing Certificate Profile Signer."
- Validate Access Token Audience (Resource URI)
If you are manually acquiring the token to pass into the --azure-key-vault-accesstoken parameter, the target scope must be correct. Then ensure your token acquisition command (e.g., via Azure CLI):
az account get-access-token --resource https://codesigning.azure.net/
- Check Network Security & Firewall
Since the error is intercepted by an Application Gateway, there may be network-level restrictions on your Trusted Signing account.
- In the Azure Portal, go to your Trusted Signing Account.
- Check the Networking blade.
- If "Public network access" is set to "Disabled" or "Selected networks," ensure your public IP address is whitelisted.
- If your organization uses a Proxy or a Web Application Firewall (WAF), ensure that traffic to *.codesigning.azure.net is not being inspected or dropped.
If you find the answer useful, please mark it as the "Accepted Answer" so other members can find the solution easily. Your help in supporting the community is much appreciated!
Best regards,
Scott Nguyen