azure - Unable to create PostgreSQL server with Azure CLI
问题描述
I am trying to create a PosgreSQL server with the following command
az postgres server create --resource-group MyResourceGroup --name testdbxxxyyyzzz_743569812 --location westeurope --admin-user postgres --admin-password postgres --sku-name B_Gen5_1
And I see this message
Checking the existence of the resource group 'MyResourceGroup'...
Resource group 'MyResourceGroup' exists ? : True
The server name 'testdbxxxyyyzzz_743569812' already exists.Please re-run command with some other server name.
It happens for any name I'm trying to use. What I'm doing wrong or at least help me to investigate this issue any further? Is there any verbose mode for Azure CLI?
解决方案
Solved: the server name can contain only lowercase letters, numbers, and the hyphen (-) character, after changing the name to "testdbxxxyyyzzz743569812" everything works fine. The message is completely misleading.
推荐阅读
- python - 使用 Python 计算网站中词频的代码未输出正确的频率
- html - 如何更改自定义收音机小部件代码以隐藏 Django 中的文本?
- c# - GroupBy 然后在实体框架中的单独表达式中求和
- arduino-c++ - afr 仪表不读取数字 Devide 问题?
- java - Spring Webflux:当 Mono.zip 中的一个 Mono 为空时处理错误
- r - 四舍五入到最接近的百分之一 dplyr
- javascript - .env 文件加载没有 dotenv 包
- javascript - 模型未绑定到 JSON
- ubuntu - 在 ubuntu-mate 20.04.2 LTS 上将哪个内核配置从模块转换为内置
- typescript - 为什么 TS 会以如此奇怪的方式编译枚举?