API-Management deployment using New-AzResourceGroupDeployment fails with Error downloading document from the provided link.

Pieter 0 Reputation points
2024-04-11T12:27:01.8533333+00:00

When I want to deploy an API Template file, I'm not able to get this working. It was working for a long time. But since yesterday I get the error below when I want want to run the New-AzResourceGroupDeployment function.

"Status Message: One or more fields contain incorrect values: (Code: ValidationError) - Error downloading document from the provided link. (Code:ValidationError) Status Message: One or more fields contain incorrect values: (Code: ValidationError)"

I triple checked all options and they seem to be correct but I keep getting this error? The details are pretty low so I cannot find the root cause of the issue. The file that is breaking is not changed since November 2023. So, I don't get it why it fails now?

Happy to provide more details that could help the analysis.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,118 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,509 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. dashanan13 930 Reputation points
    2024-04-13T22:50:40.6966667+00:00

    Hei @Pieter ,

    Thank you for contacting Microsoft Community.

    This is an error where either the complete file address is wrong (template file not found at location mentioned n the command line and this is most probable)

    or

    Template parameter is wrong/missing.

    I would suggest to deploy template via Azure portal via "Deploy from a custom template": https://portal.azure.com/#create/Microsoft.Template

    Tutorial: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/quickstart-create-templates-use-the-portal

    Please mark this as answer if it helped

    0 comments No comments

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.