Skip to content

Commit 4de7165

Browse files
EventHub NSP Support Added (#28235)
1 parent 8604f07 commit 4de7165

File tree

35 files changed

+1392
-447
lines changed

35 files changed

+1392
-447
lines changed

src/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")]
2424
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26-
[assembly: System.CLSCompliantAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/EventHub/EventHub.Autorest/README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ For information on how to develop for `Az.EventHub`, see [how-to.md](how-to.md).
2828
2929
``` yaml
3030
# Please specify the commit id that includes your features to make sure generated codes stable.
31-
commit: 91288ed6ade4e8cef4b052891b51bbdbf69090fb
31+
commit: 7977092320778f47c240371124748e6967793459
3232
require:
3333
# readme.azure.noprofile.md is the common configuration file
3434
- $(this-folder)/../../readme.azure.noprofile.md
3535
input-file:
3636
# You need to specify your swagger files here.
3737
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/AvailableClusterRegions-preview.json
3838
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json
39-
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json
39+
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2025-05-01-preview/namespaces.json
4040
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json
4141
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/AuthorizationRules.json
4242
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/CheckNameAvailability.json
@@ -260,10 +260,10 @@ directive:
260260
set:
261261
property-name: Description
262262

263-
# Remove NSP calls
264263
- where:
264+
verb: New
265265
subject: NetworkSecurityPerimeterConfiguration
266-
remove: true
266+
hide: true
267267

268268
# Hide New-AzEventHubNetworkRuleSet
269269
- where:
@@ -407,15 +407,20 @@ directive:
407407
- where:
408408
verb: New
409409
subject: EventHub
410-
parameter-name: RetentionDescriptionMinCompactionLagInMin
410+
parameter-name: RetentionDescriptionMinCompactionLagTimeInMinute
411411
set:
412412
parameter-name: MinCompactionLagInMin
413413
- where:
414414
model-name: EventHub
415-
property-name: RetentionDescriptionMinCompactionLagInMin
415+
property-name: RetentionDescriptionMinCompactionLagTimeInMinute
416416
set:
417417
property-name: MinCompactionLagInMin
418418

419+
- where:
420+
subject: NetworkSecurityPerimeterConfigurationResourceAssociationName
421+
set:
422+
subject: NetworkSecurityPerimeterConfigurationsForAssociation
423+
419424
# Cluster
420425
- where:
421426
verb: New
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"resourceType": "namespaces/networkSecurityPerimeterConfigurations",
3+
"apiVersion": "2025-05-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzEventHubNetworkSecurityPerimeterConfigurationsForAssociation",
10+
"description": "Return a NetworkSecurityPerimeterConfigurations resourceAssociationName",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkSecurityPerimeterConfigurations/{resourceAssociationName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhubnetworksecurityperimeterconfigurationsforassociation"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-NamespaceName <String>",
20+
"-ResourceAssociationName <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Return a NetworkSecurityPerimeterConfigurations resourceAssociationName",
30+
"parameters": [
31+
{
32+
"name": "-NamespaceName",
33+
"value": "[Path.namespaceName]"
34+
},
35+
{
36+
"name": "-ResourceAssociationName",
37+
"value": "[Path.resourceAssociationName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
}
51+
]
52+
}

src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces-privateEndpointConnections.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "namespaces/privateEndpointConnections",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-05-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
66
},

src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "namespaces",
3-
"apiVersion": "2024-05-01-preview",
3+
"apiVersion": "2025-05-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
66
},

src/EventHub/EventHub.Autorest/docs/Az.EventHub.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.EventHub
3-
Module Guid: 94ceb244-cf13-44e9-a891-409d8b37af84
3+
Module Guid: e218577f-a5ef-4d91-8828-dedf50f00ec9
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.eventhub
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -50,6 +50,12 @@ Gets the description of the specified namespace.
5050
### [Get-AzEventHubNetworkRuleSet](Get-AzEventHubNetworkRuleSet.md)
5151
Gets NetworkRuleSet for a Namespace.
5252

53+
### [Get-AzEventHubNetworkSecurityPerimeterConfiguration](Get-AzEventHubNetworkSecurityPerimeterConfiguration.md)
54+
Gets list of current NetworkSecurityPerimeterConfiguration for Namespace
55+
56+
### [Get-AzEventHubNetworkSecurityPerimeterConfigurationsForAssociation](Get-AzEventHubNetworkSecurityPerimeterConfigurationsForAssociation.md)
57+
Return a NetworkSecurityPerimeterConfigurations resourceAssociationName
58+
5359
### [Get-AzEventHubPrivateEndpointConnection](Get-AzEventHubPrivateEndpointConnection.md)
5460
Gets a description for the specified Private Endpoint Connection name.
5561

@@ -60,22 +66,22 @@ Gets lists of resources that supports Privatelinks.
6066
Gets the details of an EventHub schema group.
6167

6268
### [New-AzEventHub](New-AzEventHub.md)
63-
create a new Event Hub as a nested resource within a Namespace.
69+
Create a new Event Hub as a nested resource within a Namespace.
6470

6571
### [New-AzEventHubApplicationGroup](New-AzEventHubApplicationGroup.md)
66-
create an ApplicationGroup for a Namespace.
72+
Create an ApplicationGroup for a Namespace.
6773

6874
### [New-AzEventHubAuthorizationRule](New-AzEventHubAuthorizationRule.md)
6975
Creates an EventHub Authorization Rule
7076

7177
### [New-AzEventHubCluster](New-AzEventHubCluster.md)
72-
create an instance of an Event Hubs Cluster.
78+
Create an instance of an Event Hubs Cluster.
7379

7480
### [New-AzEventHubConsumerGroup](New-AzEventHubConsumerGroup.md)
75-
create an Event Hubs consumer group as a nested resource within a Namespace.
81+
Create an Event Hubs consumer group as a nested resource within a Namespace.
7682

7783
### [New-AzEventHubGeoDRConfiguration](New-AzEventHubGeoDRConfiguration.md)
78-
create a new Alias(Disaster Recovery configuration)
84+
Create a new Alias(Disaster Recovery configuration)
7985

8086
### [New-AzEventHubIPRuleConfig](New-AzEventHubIPRuleConfig.md)
8187
Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzEventHubNetworkRuleSet
@@ -93,7 +99,7 @@ Create an in-memory object for NamespaceReplicaLocation.
9399
Creates an EventHub Namespace
94100

95101
### [New-AzEventHubSchemaGroup](New-AzEventHubSchemaGroup.md)
96-
create an EventHub schema group.
102+
Create an EventHub schema group.
97103

98104
### [New-AzEventHubThrottlingPolicyConfig](New-AzEventHubThrottlingPolicyConfig.md)
99105
Constructs an IThrottlingPolicy object that can be fed as input to New-AzEventHubApplicationGroup or Set-AzEventHubApplicationGroup
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
---
2+
external help file:
3+
Module Name: Az.EventHub
4+
online version: https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhubnetworksecurityperimeterconfiguration
5+
schema: 2.0.0
6+
---
7+
8+
# Get-AzEventHubNetworkSecurityPerimeterConfiguration
9+
10+
## SYNOPSIS
11+
Gets list of current NetworkSecurityPerimeterConfiguration for Namespace
12+
13+
## SYNTAX
14+
15+
```
16+
Get-AzEventHubNetworkSecurityPerimeterConfiguration -NamespaceName <String> -ResourceGroupName <String>
17+
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
18+
```
19+
20+
## DESCRIPTION
21+
Gets list of current NetworkSecurityPerimeterConfiguration for Namespace
22+
23+
## EXAMPLES
24+
25+
### Example 1: Gets list of NSP configurations an EventHub namespace.
26+
```powershell
27+
Get-AzEventHubNetworkSecurityPerimeterConfiguration -ResourceGroupName myResourceGroup -NamespaceName myNamespace
28+
```
29+
30+
```output
31+
ApplicableFeature :
32+
Id : /subscriptions/subscriptionid/resourceGroups/myresourcegroup/providers/Microsoft.EventHub/namespaces/mynamespaceName
33+
/networkSecurityPerimeterConfigurations/subscriptionid.testPranjitEH1-4263ede0-d5e1-4166-9694-2f0
34+
7739397aa
35+
IsBackingResource : False
36+
Location : eastus2euap
37+
Name : subscriptionid.testPranjitEH1-4263ede0-d5e1-4166-9694-2f07739397aa
38+
NetworkSecurityPerimeterGuid : subscriptionid
39+
NetworkSecurityPerimeterId : /subscriptions/subscriptionid/resourceGroups/myresourcegroup/providers/Microsoft.Network/networkSecurityPe
40+
rimeters/pranjit-nsp-ncus
41+
NetworkSecurityPerimeterLocation : northcentralus
42+
ParentAssociationName :
43+
ProfileAccessRule : {{
44+
"properties": {
45+
"direction": "Inbound",
46+
"addressPrefixes": [ ],
47+
"subscriptions": [ ],
48+
"networkSecurityPerimeters": [ ],
49+
"fullyQualifiedDomainNames": [ ]
50+
},
51+
"name": "ingress2"
52+
}, {
53+
"properties": {
54+
"direction": "Inbound",
55+
"addressPrefixes": [ "198.166.98.0/24" ],
56+
"subscriptions": [ ],
57+
"networkSecurityPerimeters": [ ],
58+
"fullyQualifiedDomainNames": [ ]
59+
},
60+
"name": "ingress"
61+
}}
62+
ProfileAccessRulesVersion : 5
63+
ProfileName : defaultProfile
64+
ProvisioningIssue :
65+
ProvisioningState : Succeeded
66+
ResourceAssociationAccessMode : Learning
67+
ResourceAssociationName : myResourceAssociationName
68+
ResourceGroupName : myresourcegroup
69+
SourceResourceId :
70+
Type : Microsoft.EventHub/Namespaces/networkSecurityPerimeterConfigurations
71+
```
72+
73+
Gets tets list of NSP configurations an EventHub namespace.
74+
75+
## PARAMETERS
76+
77+
### -DefaultProfile
78+
The DefaultProfile parameter is not functional.
79+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
80+
81+
```yaml
82+
Type: System.Management.Automation.PSObject
83+
Parameter Sets: (All)
84+
Aliases: AzureRMContext, AzureCredential
85+
86+
Required: False
87+
Position: Named
88+
Default value: None
89+
Accept pipeline input: False
90+
Accept wildcard characters: False
91+
```
92+
93+
### -NamespaceName
94+
The Namespace name
95+
96+
```yaml
97+
Type: System.String
98+
Parameter Sets: (All)
99+
Aliases:
100+
101+
Required: True
102+
Position: Named
103+
Default value: None
104+
Accept pipeline input: False
105+
Accept wildcard characters: False
106+
```
107+
108+
### -ResourceGroupName
109+
Name of the resource group within the azure subscription.
110+
111+
```yaml
112+
Type: System.String
113+
Parameter Sets: (All)
114+
Aliases:
115+
116+
Required: True
117+
Position: Named
118+
Default value: None
119+
Accept pipeline input: False
120+
Accept wildcard characters: False
121+
```
122+
123+
### -SubscriptionId
124+
Subscription credentials that uniquely identify a Microsoft Azure subscription.
125+
The subscription ID forms part of the URI for every service call.
126+
127+
```yaml
128+
Type: System.String[]
129+
Parameter Sets: (All)
130+
Aliases:
131+
132+
Required: False
133+
Position: Named
134+
Default value: (Get-AzContext).Subscription.Id
135+
Accept pipeline input: False
136+
Accept wildcard characters: False
137+
```
138+
139+
### CommonParameters
140+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
141+
142+
## INPUTS
143+
144+
## OUTPUTS
145+
146+
### Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INetworkSecurityPerimeterConfigurationList
147+
148+
## NOTES
149+
150+
## RELATED LINKS
151+

0 commit comments

Comments
 (0)