Get-AzNetworkManagerActiveSecurityAdminRule
Lists NetworkManager Active Security Admin Rules in network manager.
Syntax
Get-AzNetworkManagerActiveSecurityAdminRule
-NetworkManagerName <String>
-ResourceGroupName <String>
[-Region <String[]>]
[-SkipToken <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzNetworkManagerActiveSecurityAdminRule cmdlet lists NetworkManager Active Security Admin Rules in network manager.
Examples
Example 1
$regions = @("centraluseuap")
Get-AzNetworkManagerActiveSecurityAdminRule -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG" -Region $regions -SkipToken "FakeSkipToken"
Value : [
{
"DisplayName": "Sample Rule Name",
"Description": "Description",
"Protocol": "Tcp",
"Sources": [
{
"AddressPrefix": "Internet",
"AddressPrefixType": "ServiceTag"
}
],
"Destinations": [
{
"AddressPrefix": "10.0.0.1",
"AddressPrefixType": "IPPrefix"
}
],
"SourcePortRanges": [
"100"
],
"DestinationPortRanges": [
"99"
],
"Access": "Allow",
"Priority": 100,
"Direction": "Inbound",
"ProvisioningState": "Succeeded",
"Id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityAdminConfigurations/TestAdminConfig/ruleCollections/TestRuleCollection/rules/TestRule",
"Region": "eastus2euap",
"ConfigurationDisplayName": "sample Config DisplayName",
"ConfigurationDescription": "DESCription",
"RuleCollectionDisplayName": "Sample rule Collection displayName",
"RuleCollectionDescription": "Sample rule Collection Description",
"RuleCollectionAppliesToGroups": [
{
"NetworkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/testNG"
}
],
"RuleGroups": [
{
"Id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/testNG",
"DisplayName": "DISplayName",
"Description": "SampleConfigDESCRIption",
"GroupMembers": [
{
"ResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet"
}
],
"ConditionalMembership": "",
"ProvisioningState": "Succeeded"
}
]
}
]
SkipToken :
Lists NetworkManager Active Security Admin Rules in network manager for region centraluseuap.
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 |
-NetworkManagerName
The network manager name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-Region
List of regions.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
The resource group name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-SkipToken
SkipToken.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
System.String[]
Outputs
Microsoft.Azure.Commands.Network.Models.NetworkManager.PSNetworkManagerActiveSecurityAdminRuleListResult
Related Links
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell