Azure应用服务:无法保存应用程序设置 [英] Azure App Service : can't save application settings

查看:50
本文介绍了Azure应用服务:无法保存应用程序设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以设置应用程序设置和连接字符串,但无法保存.尽管进行了更改,该按钮仍保持禁用状态.我有3个应用程序,仅涉及一个.我是订阅的管理员,有什么想法吗?

I can set my application settings and connection strings but I can't save them. The button remains disabled despite my changes. I have 3 applications, only one is concerned. I'm admin of the subscription, any ideas ?

推荐答案

要解决此"Azure Portal"问题,可以使用powerShell设置应用程序设置和连接字符串,这是一个简短示例:

To overstep this "Azure Portal" problem, you can set your application settings and connexion strings using powerShell, here is a short example :

Login-AzureRmAccount

$siteName = 'myWebsiteName';
$rgName = 'myWebsite-resourceGroup';

$appSettings = @{};
$appSettings.Add("myKey","myValue");

Set-AzureRmWebApp -ResourceGroupName $rgName -Name $siteName -AppSettings $appSettings

这篇关于Azure应用服务:无法保存应用程序设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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