question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get the function Keys in ARM templates?

See original GitHub issue

Azure Function app Runtime version: ~3 C# I want get the Http trigger url in Azure function app in ARM template. But I cant find the right method.

when I use these code has exception.

    "Key": {
        "type": "string",
        "value": "[listsecrets(resourceId('Microsoft.Web/sites/functions', parameters('existingFunctionAppName'), parameters('functionName')),'2015-08-01').key]"
    },        
    "Url": {
        "type": "string",
        "value": "[listsecrets(resourceId('Microsoft.Web/sites/functions', parameters('existingFunctionAppName'), parameters('functionName')),'2015-08-01').trigger_url]"
    }   

So, what is the correct method the get the trigger url or the function keys?

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
v-bbalaiagarcommented, Dec 2, 2021

Hi @Fisher-Joe, Check out this GitHub thread for some examples of how to use these APIs in your ARM templates.

Please check and let us know if this helps.

0reactions
msftbot[bot]commented, Dec 7, 2021

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ARM Deployment: Get Azure Function API Key
As part of a Stream Analytics deployment solution I want to retrieve the API key for a Azure Function App in an ARM...
Read more >
Microsoft.Web sites/functions/keys
Web/sites/functions/keys syntax and properties to use in Azure Resource Manager templates for deploying the resource. API version latest.
Read more >
Azure Function keys - what are those and how to access ...
Azure Function Keys are used for authorizing access to the functions. The host and the master key exist at the Function App level, ......
Read more >
Get Azure Function host key in an ARM deployment template
Function key : A key used to authenticate at a function level. Host key : A key shared by all the functions hosted...
Read more >
Managing Azure Functions Keys (using the new ARM APIs!)
Let's see how we can get the values of function keys, as well as generate our own, and update them with new values....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found