Share via

Azure API ARM template error: Either Value or Keyvault must be provided. (Code: ValidationError, Target: value)

Bill Winder 0 Reputation points
2024-10-15T16:10:22.6566667+00:00

I have configured an Azure API and I am currently trying to deploy it through ARM template. I have exported the Azure API as ARM template and then go to "Deploy a Custom template".

The Azure API has multiple Logic Apps as backends and therefore when these are added it creates named values to store the signatures of the Logic Apps.

However when I import the ARM template it results in lots of errors of type:

Either Value or Keyvault must be provided. (Code: ValidationError, Target: value)

This occurs when importing resources of type Microsoft.ApiManagement/service/namedValues.

The ARM template seems to create the named values regardless of the error, however I am wondering why this error occurs and how I might stop it. I have considered it needs a dependsOn but not sure what. Does anyone have any ideas?

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Bill Winder 0 Reputation points
    2024-10-16T10:35:38.7+00:00

    Only resolution to this I could find was to remove all the Microsoft.ApiManagement/service/namedValues entries from the ARM template.

    I found they weren't necessary because when all the Microsoft.ApiManagement/service/properties entries were processed, they created the nameValues anyway. The Microsoft.ApiManagement/service/properties entries related to the Logic app backends and their signatures.

    Was this answer helpful?

    0 comments No comments

Your answer

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