[英]How do I have differing URLs for each environment (local/dev/test/prod) using Azure Oauth App Registrations
[英]How do I automatically launch Azure Function in a local environment?
我有两个 Azure 函数链接在一起。 我想使用 Rest Assured 在本地测试它们。 但要做到这一点,我必须在每次测试前手动运行它们。 有没有办法让这一刻自动化? 这样当测试开始时,服务会自动启动。
您必须包括使用 Azure Functions Core CLI 启动应用程序(函数应用程序)的步骤。 如果您还没有,则必须进行设置: https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Ccsharp%2Cportal% 2Cbash%2Ckeda 。
要使用命令行启动应用程序,您可以使用func host start
。 发布文档以供参考: https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Ccsharp%2Cportal%2Cbash%2Ckeda#start 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.