Get-AzNetworkManagerScopeConnection
取得網路管理員中的範圍連線。
語法
Get-AzNetworkManagerScopeConnection
[-Name <String>]
-NetworkManagerName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkManagerScopeConnection
-Name <String>
-NetworkManagerName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzNetworkManagerScopeConnection Cmdlet 會取得網路管理員中的一或多個範圍連線。
範例
範例 1:擷取範圍連線
Get-AzNetworkManagerScopeConnection -ResourceGroupName "TestResourceGroup" -NetworkManagerName "TestNM" -Name "testsc"
TenantId : 00000000-0000-0000-0000-000000000000
ResourceId : /subscriptions/00000000-0000-0000-0000-000000000000
ConnectionState : Pending
Description : SampleDescription
DisplayName :
Type : Microsoft.Network/networkManagers/scopeConnections
ProvisioningState :
SystemData : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSSystemData
SystemDataText : {
"CreatedBy": "user@microsoft.com",
"CreatedByType": "User",
"CreatedAt": "2022-03-16T03:01:26.397158Z",
"LastModifiedBy": "user@microsoft.com",
"LastModifiedByType": "User",
"LastModifiedAt": "2022-03-16T03:01:26.397158Z"
}
Name : testsc
Etag :
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestResourceGroup/providers/Microsoft.Network/networkManagers/TestNM/scopeConnections/testsc
取得網路管理員上的特定範圍連線。
範例 2:列出範圍連線
Get-AzNetworkManagerScopeConnection -ResourceGroupName "psResourceGroup" -NetworkManagerName "psNetworkManager"
TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444
ResourceId : /subscriptions/0fd190fa-dd1c-4724-b7f6-c5cc3ba5c884
ConnectionState : Pending
DisplayName :
Description : SampleDescription
Type : Microsoft.Network/networkManagers/scopeConnections
ProvisioningState :
SystemData : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSSystemData
SystemDataText : {
"CreatedBy": "jaredgorthy@microsoft.com",
"CreatedByType": "User",
"CreatedAt": "2022-08-07T23:53:52.6942092Z",
"LastModifiedBy": "jaredgorthy@microsoft.com",
"LastModifiedByType": "User",
"LastModifiedAt": "2022-08-07T23:53:52.6942092Z"
}
Name : subConnection
Etag :
Id : /subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b/resourceGroups/psResourceGroup/providers/Microsoft.Network/networkManagers/psNetworkManager/scopeConnections/subConnection
TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444
ResourceId : /providers/Microsoft.Management/managementGroups/newMG
ConnectionState : Pending
DisplayName :
Description : SampleDescription
Type : Microsoft.Network/networkManagers/scopeConnections
ProvisioningState :
SystemData : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSSystemData
SystemDataText : {
"CreatedBy": "jaredgorthy@microsoft.com",
"CreatedByType": "User",
"CreatedAt": "2022-08-07T23:55:14.7516201Z",
"LastModifiedBy": "jaredgorthy@microsoft.com",
"LastModifiedByType": "User",
"LastModifiedAt": "2022-08-07T23:55:14.7516201Z"
}
Name : mgConnection
Etag :
Id : /subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b/resourceGroups/psResourceGroup/providers/Microsoft.Network/networkManagers/psNetworkManager/scopeConnections/mgConnection
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
資源名稱。
類型: | String |
別名: | ResourceName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | True |
-NetworkManagerName
網路管理員名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | True |
-ResourceGroupName
資源組名。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | True |
輸入
輸出
PSNetworkManagerScopeConnection