我的 .Net Core 3.1 应用程序已经定义了 appsettings.json 文件:
{
"SettingsSection": {
"CameraStartupReconnectDelayInSeconds": 30,
"Cameras": {
"Camera1": {
"Username": "",
"Password": "",
"Port": "",
"IpAddress": ""
},
"Camera2": {
"Username": "",
"Password": "",
"Port": "",
"IpAddress": ""
}
}
}
}
我想知道两件事:
我在创建azure时如何设置这个环境变量
容器注册?
az container create -g MyResourceGroup --name myapp --image myimage:latest --environment-variables key1=value1 key2=value2
有可能吗?
如何保护密码字段的值?