NamedValue ARM tempalte deployment - secret value

Nagashree Balasundaram 731 Reputation points

I see an issue with deploying a Named-Value ARM template to APIM when the type is set to "secret"
The ARM template deployment gives an error "Either Value or Keyvault must be provided"
What is the option to deploy templates which have values defined as secret?

Do these have to be manually created and mapped? or is there something i am missing while running the ARM template deployment? (Attaching the ARM tempalte and the parameters file)


Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,805 questions
0 comments No comments
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 22,121 Reputation points

    Hi @Nagashree Balasundaram Thanks for reaching out. As per the error message you must include a value if there is no key vault secret. please refer the below screen shot


    "resources": [
    "apiVersion": "2021-12-01-preview",
    "type": "Microsoft.ApiManagement/service/namedValues",
    "name": "[concat(parameters('apimServiceName'), '/CEMApi-IntegratorKey')]",
    "properties": {
    "tags": [],
    "secret": true,
    "displayName": "CEMApi-IntegratorKey",
    "VALUE": "------" <------------

    let me know incase of further queries, I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful