【发布时间】:2018-10-23 07:24:59
【问题描述】:
我只需要确定这种行为是否是由于整个 Azure 服务管理已弃用?被 AzureRM 取代还是别的什么?
【问题讨论】:
标签: powershell azure-sql-database azure-rm
我只需要确定这种行为是否是由于整个 Azure 服务管理已弃用?被 AzureRM 取代还是别的什么?
【问题讨论】:
标签: powershell azure-sql-database azure-rm
如果 cmdlet 不以 <verb>-AzureRm* 开头,则它不是 AzureRm 模块的一部分。
Get-AzureSqlDatabaseServer 似乎是 Azure 模块的一部分,该模块已被弃用。
也许您正在寻找Get-AzureRmSqlServer?
Get-Help Get-AzureRmSqlServer
NAME
Get-AzureRmSqlServer
SYNOPSIS
Returns information about SQL Database servers.
SYNTAX
Get-AzureRmSqlServer [[-ResourceGroupName] <System.String>] [[-ServerName]
<System.String>] [-DefaultProfile <Microsoft.Azure.Commands.Common.Authenticatio
n.Abstractions.IAzureContextContainer>] [-Confirm
<System.Management.Automation.SwitchParameter>] [-WhatIf
<System.Management.Automation.SwitchParameter>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmSqlServer cmdlet returns information about one or more Azure SQL
Database servers. Specify the name of a server to see information for only that
server.
【讨论】:
Azure 替换为AzureRm ......但它们通常非常接近!您始终可以使用 Get-Command -Module AzureRm* 在模块中搜索 cmdlet