VisualStudioCode中的Azure功能应用程序失败(2017) [英] Azure Function Apps Failure in VisualStudioCode (2017)

查看:102
本文介绍了VisualStudioCode中的Azure功能应用程序失败(2017)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Azure功能( Python预览)。我能够在本地测试Azure功能应用程序,一切正常。我在部署到Azure时遇到问题。以下是我的一些问题。


已安装:



  1. VisualStudioCode(2017)
  2. Node.js
  3. Azure功能核心工具
  4. VisualStudioCode中的Azure插件(2017)

优秀问题:


  1. 是否有任何关于开始的文档完成如何在VisualStudioCode中创建和部署Azure功能( Python预览)?
  2. 我在尝试时始终收到(服务不可用)错误消息使用VisualStudioCode中的Azure部署功能将Azure功能部署到Azure。为解决这个问题,我需要做些什么呢?
  3. 如何从python中的app.setting中获取值,就像在.Net中一样。我知道在.Net中很容易做到,我想知道是否有办法在python中进行,而不必解析json并拉动 这样的价值?




解决方案

1。你有没有签出 


https://code.visualstudio.com/docs/python/tutorial-azure-functions


2。如果您可以共享应用名称,我们可以调查失败的内容。


3。应用程序集应该可以作为功能应用程序中的环境变量使用。所以你可以使用python os模块来读取这些值。


We are employing Azure Function with (Python preview). I am able to test the Azure function apps locally and everything works fine. I am having issues deploying to Azure. Below are some of the questions that I have.

Installed:

  1. VisualStudioCode (2017)
  2. Node.js
  3. Azure Function Core Tools
  4. Azure add-on in VisualStudioCode (2017)

Outstanding Questions:

  1. Are there any documentation on start to finish on how to create and deploy Azure Functions (Python preview) in VisualStudioCode?
  2. I am consistently receiving a (Service Unavailable) error message while trying to deploy Azure Functions to Azure using the Azure deploy feature in VisualStudioCode. What do I need to do on my end to resolve the problem?
  3. How can you get the values from the app.setting in python kind of like you can do in .Net. I know its quite easy to do in .Net and I was wondering if there is a way to do it in python without having to parse the json and pull  out the values like that?

解决方案

1. have you checked out 

https: //code.visualstudio.com/docs/python/tutorial-azure-functions

2. If you can share the app name, we can investigate what is failing.

3. Appsettings should be available as environment variables in your function app. So you can use python os module to read these values.


这篇关于VisualStudioCode中的Azure功能应用程序失败(2017)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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