[英]Azure runbook rename SQL database
在Azure中,我想使用以下命令使用PowerShell自动化Runbook重命名SQL数据库:
Set-AzureRmSqlDatabase -ResourceGroupName <ResourceGroupName>
-ServerName <ServerName> -DatabaseName <DatabaseName> -NewName <NewName>
此命令在Azure门户的顶部导航中的Launch Cloud Shell中正常工作。
但是在Runbook中,它不适用于此错误:
Set-AzureRmSqlDatabase:找不到与参数名称“NewName”匹配的参数。
似乎-NewName
中缺少-NewName
Set-AzureRmSqlDatabase `
-DatabaseName <System.String> `
-ResourceGroupName <System.String> `
[-ElasticPoolName <System.String>] `
[-Tags <System.Collections.Generic.Dictionary`2[System.String,System.String]>] `
[-RequestedServiceObjectiveName <System.String>] `
-ServerName <System.String> `
[-Edition <Microsoft.Azure.Commands.Sql.Database.Model.DatabaseEdition>] `
[-MaxSizeBytes <System.Int64>]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.