Get-AzNetworkSecurityPerimeterAccessRule
Gets the specified NSP access rule by name.
Syntax
List (Default)
Get-AzNetworkSecurityPerimeterAccessRule
-ProfileName <String>
-ResourceGroupName <String>
-SecurityPerimeterName <String>
[-SubscriptionId <String[]>]
[-SkipToken <String>]
[-Top <Int32>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentityProfile
Get-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileInputObject <INetworkSecurityPerimeterIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentityNetworkSecurityPerimeter
Get-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileName <String>
-NetworkSecurityPerimeterInputObject <INetworkSecurityPerimeterIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileName <String>
-ResourceGroupName <String>
-SecurityPerimeterName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzNetworkSecurityPerimeterAccessRule
-InputObject <INetworkSecurityPerimeterIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Gets the specified NSP access rule by name.
Examples
Example 1: List NetworkSecurityPerimeter AccessRules
Get-AzNetworkSecurityPerimeterAccessRule -ProfileName profile-test-1 -ResourceGroupName rg-test-1 -SecurityPerimeterName nsp-test-1
Name ResourceGroupName
---- -----------------
access-rule-test-1 rg-test-1
access-rule-test-2 rg-test-1
List NetworkSecurityPerimeter AccessRules
Example 2: Get NetworkSecurityPerimeter AccessRule by Name
Get-AzNetworkSecurityPerimeterAccessRule -Name access-rule-test-1 -ProfileName profile-test-1 -ResourceGroupName rg-test-1 -SecurityPerimeterName nsp-test-1
AddressPrefix : {198.168.0.0/32}
Direction : Inbound
EmailAddress : {}
FullyQualifiedDomainName : {}
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-test-1/providers
/Microsoft.Network/networkSecurityPerimeters/nsp-test-1/profiles/profile-test-1
/accessRules/access-rule-test-1
Name : access-rule-test-1
NetworkSecurityPerimeter : {}
PhoneNumber : {}
ProvisioningState : Succeeded
ResourceGroupName : rg-test-1
ServiceTag :
Subscription : {}
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Type : Microsoft.Network/networkSecurityPerimeters/profiles/accessRules
Get NetworkSecurityPerimeter AccessRule by Name
Example 3: Get NetworkSecurityPerimeter AccessRule by Identity (using pipe)
$GETObj = Get-AzNetworkSecurityPerimeterAccessRule -Name access-rule-test-1 -ProfileName profile-test-1 -ResourceGroupName rg-test-1 -SecurityPerimeterName nsp-test-1
Get-AzNetworkSecurityPerimeterAccessRule -InputObject $GETObj
AddressPrefix : {198.168.0.0/32}
Direction : Inbound
EmailAddress : {}
FullyQualifiedDomainName : {}
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-test-1/providers
/Microsoft.Network/networkSecurityPerimeters/nsp-test-1/profiles/profile-test-1
/accessRules/access-rule-test-1
Name : access-rule-test-1
NetworkSecurityPerimeter : {}
PhoneNumber : {}
ProvisioningState : Succeeded
ResourceGroupName : rg-test-1
ServiceTag :
Subscription : {}
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Type : Microsoft.Network/networkSecurityPerimeters/profiles/accessRules
Get NetworkSecurityPerimeter AccessRule by Identity (using pipe)
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
GetViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
The name of the NSP access rule.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AccessRuleName
Parameter sets
GetViaIdentityProfile
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetViaIdentityNetworkSecurityPerimeter
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
GetViaIdentityNetworkSecurityPerimeter
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
GetViaIdentityProfile
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-ProfileName
The name of the NSP profile.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: SecurityPerimeterProfileName, NSPProfileName
Parameter sets
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetViaIdentityNetworkSecurityPerimeter
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The name of the resource group.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SecurityPerimeterName
The name of the network security perimeter.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: NetworkSecurityPerimeterName, NSPName
Parameter sets
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SkipToken
SkipToken is only used if a previous operation returned a partial result.
If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
The subscription credentials which uniquely identify the Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
Parameter properties
Type: String [ ]
Default value: (Get-AzContext).Subscription.Id
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Top
An optional query parameter which specifies the maximum number of records to be returned by the server.
Parameter properties
Type: Int32
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs