【发布时间】:2020-03-18 15:09:46
【问题描述】:
尝试运行 powershell 来更改 Azure 弹性池的 DTU。问题是它找不到资源组。任何想法出了什么问题。我的步骤是:
- 登录并运行 Azure Cloud shell
- 在下面粘贴代码:
Set-AzureRmSqlElasticPool –ResourceGroupName "MyResourceGroup"–ServerName "MyServer.database.windows.net" –ElasticPoolName "My_ElasticPool" –Dtu 200 –DatabaseDtuMax 100 –DatabaseDtuMin 50
完整的错误是:
Set-AzureRmSqlElasticPool:资源 'Microsoft.Sql/servers/MyServer.database.windows.net/elasticpools/My_ElasticPool' 未找到资源不足组“MyResourceGroup”。在行:1 字符:1 + Set-AzureRmSqlElasticPool –ResourceGroupName "FluResourceGroup"–Serve ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Set-AzSqlElasticPool], CloudException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Sql.ElasticPool.Cmdlet.SetAzureSqlElasticPool
对 powershell 完全陌生,如果这是一个甜甜圈问题,请道歉?
【问题讨论】:
-
我还建议您从使用 AzureRm 更改为 Az 模块。 AzureRm 已被弃用,所有相关功能已移植到 Az 模块。 docs.microsoft.com/en-us/powershell/azure/…
标签: azure powershell