如何在没有门户的情况下获取功能URL [英] How to get function URL without portal
问题描述
我之前关于功能未在门户中显示"的问题(已编译的功能没有在门户网站中显示),现在我面临的问题是,由于该原因,我无法使用门户网站获取功能URL"和进行身份验证的功能键. 有没有无需访问门户就能获取功能键的方法?
from my previous question on "function doesn't show in portal" (Compiled function not showing in portal) I am now facing the issue that because of that I am unable to use the portal to get the "Function URL" and the function key to auth with. Is there a way to get the function key without access to the portal?
我知道可以通过KUDU读取带有密钥的JSON文件,但是这些密钥是加密的,因此我不知道如何解密.
I know that via KUDU I can read the JSON file with the keys, but these are encrypted and I couldn't work out how to decrypt them.
欢呼 大卫
推荐答案
尝试以下ARM API来获取URL和密码:
Try the following ARM API to get the URL and the secret:
post /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/sites/{functionapp}/functions/MyFunction/listsecrets?api-version=2015-08-01
另请参见等效的PowerShell 此处
See also PowerShell equivalent here.
这篇关于如何在没有门户的情况下获取功能URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!