azure-container-service - How to pass Azure Storage connection string to Container Instance
问题描述
I have an application that uses Azure Storage Tables that I would like to run in an Azure Container Instance. The Container Instance environment variables (my only option for passing configuration to the application running in the container) only allow alphanumeric and underscores in the quoted string values, and a connection string has things like semicolons and equals. I thought a Key Vault would work, but then I can't pass an application ID either. I can't pass:
- Connection String
- URL
- AppID - UUID
- base64 data
The only thing I can even think of would be to encode these strings to bytes (UTF-8) and convert the bytes to a hex string, but that's a messy workaround. What is the recommended means of passingconfiguration to an Azure Container Instance?
解决方案
11/6 更新:我们更新了 Azure 门户,使其对 env var 输入更加宽松,因此具有特殊字符(如连接字符串)的字符串现在应该可以工作。谢谢!
这是当前 Azure 门户的一个约束。请通过 az cli 尝试此部署,它应该支持 env var 值中的特殊字符。
推荐阅读
- python - TensorFlow - 多个可能的标签
- typescript - 如何在打字稿中将对象转换为数组
- sql - 创建嵌套表
- c++ - 可以使用 Cereal 重新创建 Protobuf 的 oneof 反序列化功能吗?
- visual-studio - Visual Studio 中用于查看文件头上下文菜单的快捷键
- php - 需要帮助解释这些代码行
- vue.js - 无法让 jsonp 回调在 Vue 组件中工作
- android - Firebase API 推送不会在 Android 设备上打开后台应用程序
- visual-studio-code - vs代码在ubuntu 16.04中没有向上或向下复制行
- c++ - Codeblocks 编译成功,但 gcc 失败,为什么?