如何在没有门户的情况下获取函数 URL [英] How to get function URL without portal

查看:18
本文介绍了如何在没有门户的情况下获取函数 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自我之前关于函数未在门户中显示"的问题(编译函数未显示在门户中)我现在面临的问题是,因此我无法使用门户获取功能 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆