且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何以及在何处在 Azure 上定义环境变量

更新时间:2021-07-04 10:25:49

我假设您使用的是 Azure 应用服务(以前称为 Azure 网站).

I assume you are using Azure App Service (formerly known as Azure Websites).

要定义您自己的环境变量,请单击您的站点 → 所有设置应用程序设置:

To define your own environment variable, click to your site → All SettingsApplication settings:

在应用设置"部分添加应用设置:

Add an app setting in the "App settings" section:

您可以从调试控制台验证该值.

You can verify the value from the debug console.

转到 https://{您的站点名称}.scm.azurewebsites.net/DebugConsole:

Going to https://{your site name}.scm.azurewebsites.net/DebugConsole: