NamedValue ARM tempalte deployment - secret value

Nagashree Balasundaram 741 Reputation points
2022-10-06T18:29:52.25+00:00

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)

248243-base-namedvaluestemplate.txt248188-namedvaluesparameters.txt

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

Accepted answer
  1. JananiRamesh-MSFT 29,201 Reputation points
    2022-10-12T05:54:12.1+00:00

    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

    249548-image.png

    "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

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.