編集

次の方法で共有


Get-AzNetworkManager

Gets a network manager in a resource group.

Syntax

Get-AzNetworkManager
   [-Name <String>]
   [-ResourceGroupName <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetworkManager
   -Name <String>
   -ResourceGroupName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzNetworkManager cmdlet gets one or more network managers in a resource group.

Examples

Example 1: Retrieve a network manager

Get-AzNetworkManager -ResourceGroupName "TestResourceGroup" -Name "TestNM"

DisplayName                     :
Description                     :
Location                        : eastus2euap
Id                              : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestResourceGroup/provider
                                  s/Microsoft.Network/networkManagers/TestNM
Type                            : Microsoft.Network/networkManagers
Tag                             : {}
ProvisioningState               : Succeeded
NetworkManagerScopeAccesses     : [
                                    "SecurityAdmin",
                                    "SecurityUser"
                                  ]
NetworkManagerScopes            : {
                                    "ManagementGroups": [],
                                    "Subscriptions": [
                                      "/subscriptions/00000000-0000-0000-0000-000000000000"
                                    ]
                                  }
SystemData                      : {
                                    "CreatedBy": "user@microsoft.com",
                                    "CreatedByType": "User",
                                    "CreatedAt": "2021-10-05T04:15:42",
                                    "LastModifiedBy": "user@microsoft.com",
                                    "LastModifiedByType": "User",
                                    "LastModifiedAt": "2021-10-05T04:15:42"
                                  }
Name                            : TestNM
Etag                            : W/"00000000-0000-0000-0000-000000000000"

Retrieve a network manager.

Example 2: List all network managers in a resource group

Get-AzNetworkManager -ResourceGroupName "TestResourceGroup"

DisplayName                     :
Description                     :
Location                        : eastus2euap
Id                              : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestResourceGroup/provider
                                  s/Microsoft.Network/networkManagers/TestNM
Type                            : Microsoft.Network/networkManagers
Tag                             : {}
ProvisioningState               : Succeeded
NetworkManagerScopeAccesses     : [
                                    "SecurityAdmin",
                                    "SEcurityUser"
                                  ]
NetworkManagerScopes            : {
                                    "ManagementGroups": [],
                                    "Subscriptions": [
                                      "/subscriptions/00000000-0000-0000-0000-000000000000"
                                    ]
                                  }
SystemData                      : {
                                    "CreatedBy": "user@microsoft.com",
                                    "CreatedByType": "User",
                                    "CreatedAt": "2021-10-05T04:15:42",
                                    "LastModifiedBy": "user@microsoft.com",
                                    "LastModifiedByType": "User",
                                    "LastModifiedAt": "2021-10-05T04:15:42"
                                  }
Name                            : TestNM
Etag                            : W/"00000000-0000-0000-0000-000000000000"

List all network managers in a resource group.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

The resource name.

Type:String
Aliases:ResourceName
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:True

-ResourceGroupName

The resource group name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:True

Inputs

String

Outputs

PSNetworkManager