你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzAutomationConnection
获取自动化连接。
语法
Get-AzAutomationConnection
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzAutomationConnection
[-Name] <String>
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzAutomationConnection
[-ConnectionTypeName] <String>
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzAutomationConnection cmdlet 获取一个或多个 Azure 自动化连接。 默认情况下,此 cmdlet 检索所有连接。 指定用于获取特定连接的连接的名称。 指定连接类型名称以获取特定类型的所有连接。
示例
示例 1:获取所有连接
Get-AzAutomationConnection -ResourceGroupName "ResourceGroup01" -AutomationAccountName "Contoso17"
此命令获取名为 Contoso17 的自动化帐户中的所有连接的元数据。
示例 2:获取类型的所有连接
Get-AzAutomationConnection -ResourceGroupName "ResourceGroup01" -AutomationAccountName "Contoso17" -ConnectionTypeName "SqlServer"
此命令获取名为 Contoso17 的自动化帐户中的连接的元数据。 此命令获取 SqlServer 类型的连接。
示例 3:获取连接
Get-AzAutomationConnection -ResourceGroupName "ResourceGroup01" -AutomationAccountName "Contoso17" -Name "ContosoConnection"
此命令获取名为 ContosoConnection 的连接的元数据。
参数
-AutomationAccountName
指定此 cmdlet 为其获取连接的自动化帐户的名称。
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ConnectionTypeName
指定此 cmdlet 检索连接的连接类型的名称。
类型: | String |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
指定此 cmdlet 检索的连接的名称。
类型: | String |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
指定此 cmdlet 为其获取连接的资源组的名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |