Unable to create Azure search service through terraform and AZ CLI with Standard3 High density SKU but getting the error

huangapple go评论56阅读模式
英文:

Unable to create Azure search service through terraform and AZ CLI with Standard3 High density SKU but getting the error

问题

我正在尝试通过Terraform创建Azure搜索服务,但不支持标准3高密度SKU。随后,我尝试使用AZ CLI创建它,但出现错误,错误信息为"错误:无法识别的参数:--hosting-mode highDensity"。如何解决这个错误并创建一个具有S3HD SKU的搜索服务?

我尝试使用AZ CLI命令创建具有S3HD SKU的Azure搜索服务,但失败了,显示主机模式是不支持的参数。此外,Terraform不支持高密度SKU。

英文:

I am trying to create an azure search service through terraform but it is not supported through standard3 High Density SKU. Subsequently, I am trying to create it with AZ CLI but getting the error as"ERROR: Unrecognized arguments: --hosting-mode highDensity". How to resolve this error and create a search service with S3HD SKU?

I Passed the AZ CLI command to create an Azure Search Service with S3HD Sku but it failed saying hosting mode is an unsupported argument, Also terraform does not support High Density SKU.

答案1

得分: 1

我尝试在我的环境中重现相同步骤,以使用Azure CLI创建一个S3HD SKU Azure搜索服务:

按照以下步骤使用CLI创建Azure搜索服务。

如果选择Azure搜索服务SKU为S3HD,将显示如下所示的“Standard3高密度”。

Azure CLI命令

登录到Azure订阅

az login

使用SKU S3HD创建Azure搜索服务

az search service create --name venkatsearch --resource-group myResourceGroup --sku Standard3 --hosting-mode highDensity

结果:

az search service list --resource-group myResourceGroup

结果:

一旦运行了上述命令,Azure搜索服务将成功创建,SKU为S3HD,如下所示。

有关使用CLI更多关于Azure搜索服务的信息,请参考Ms Doc

英文:

I Tried to reproduce the same in my environment to create an Azure Search Service with S3HD SKU Azure CLI:

Follow the below steps to create Azure Search Service using CLI.

If you select Azure Search Service SKU S3HD, it will show as Standard3 High density as below.

Unable to create Azure search service through terraform and AZ CLI with Standard3 High density SKU but getting the error

Azure CLI Commands

#Sing into Azure Subscription

az login

#Create Azure Search service with SKU S3HD

az search service create --name  venkatsearch --resource-group myResourceGroup --sku Standard3 --hosting-mode highDensity

Result:

Unable to create Azure search service through terraform and AZ CLI with Standard3 High density SKU but getting the error

az search service list --resource-group myResourceGroup

Result:

Unable to create Azure search service through terraform and AZ CLI with Standard3 High density SKU but getting the error

Once ran the above commands Azure Search Service with S3HD SKU are created successfully as below.

Unable to create Azure search service through terraform and AZ CLI with Standard3 High density SKU but getting the error

Refer the Ms Doc more about Azure Search Service using CLI.

huangapple
  • 本文由 发表于 2023年2月14日 22:28:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/75449258.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定