Get-AzNetworkManagerEffectiveSecurityAdminRule
Lists NetworkManager Effective Security Admin Rules applied on a virtual networks.
Syntax
Get-AzNetworkManagerEffectiveSecurityAdminRule
-VirtualNetworkName <String>
-VirtualNetworkResourceGroupName <String>
[-SkipToken <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzNetworkManagerEffectiveSecurityAdminRule cmdlet lists NetworkManager Effective Security Admin Rules applied on a virtual network.
Examples
Example 1
Get-AzNetworkManagerEffectiveSecurityAdminRule -VirtualNetworkName "TestVnet" -VirtualNetworkResourceGroupName "TestRG" -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",
"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 Effective Security Admin Rules applied on a virtual network 'TestVnet'.
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 |
-SkipToken
SkipToken.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VirtualNetworkName
The vnet name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-VirtualNetworkResourceGroupName
The resource group name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
Inputs
Outputs
Microsoft.Azure.Commands.Network.Models.NetworkManager.PSNetworkManagerEffectiveSecurityAdminRuleListResult
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