Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
17 changes: 7 additions & 10 deletions src/EventHub/EventHub.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,10 @@ require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
# You need to specify your swagger files here.
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/Eventhub/stable/2026-01-01/openapi.json
Comment thread
schaudhari6254888 marked this conversation as resolved.
# Keep cluster cmdlets on the 2024 preview swagger to avoid the tags type change.
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/AvailableClusterRegions-preview.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2025-05-01-preview/namespaces.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/AuthorizationRules.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/CheckNameAvailability.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/consumergroups.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/disasterRecoveryConfigs.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/operations.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/SchemaRegistry.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/eventhubs.json
- $(repo)/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2024-05-01-preview/ApplicationGroups.json
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
# - (this-folder)/relative-path-to-your-swagger

Expand Down Expand Up @@ -421,6 +413,11 @@ directive:
set:
subject: NetworkSecurityPerimeterConfigurationsForAssociation

- where:
verb: Get
subject: Configuration
hide: true
Comment thread
schaudhari6254888 marked this conversation as resolved.

# Cluster
- where:
verb: New
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "clusters",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2026-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
},
Expand All @@ -14,6 +14,13 @@
"url": "https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhubcluster"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
},
{
"parameters": [
"-Name <String>",
Expand All @@ -24,6 +31,23 @@
]
},
"examples": [
{
"description": "Gets the resource description of the specified Event Hubs Cluster.",
"parameters": [
{
"name": "-Name",
"value": "[Path.clusterName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
},
{
"description": "Gets the resource description of the specified Event Hubs Cluster.",
"parameters": [
Expand Down Expand Up @@ -52,6 +76,13 @@
"url": "https://learn.microsoft.com/powershell/module/az.eventhub/remove-azeventhubcluster"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
},
{
"parameters": [
"-Name <String>",
Expand All @@ -62,6 +93,23 @@
]
},
"examples": [
{
"description": "Deletes an existing Event Hubs Cluster. This operation is idempotent.",
"parameters": [
{
"name": "-Name",
"value": "[Path.clusterName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
},
{
"description": "Deletes an existing Event Hubs Cluster. This operation is idempotent.",
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "namespaces/applicationGroups",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2026-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "namespaces/disasterRecoveryConfigs",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2026-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "namespaces/eventhubs/consumergroups",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2026-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "namespaces/eventhubs",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2026-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "namespaces/networkSecurityPerimeterConfigurations",
"apiVersion": "2025-05-01-preview",
"apiVersion": "2026-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "namespaces/privateEndpointConnections",
"apiVersion": "2025-05-01-preview",
"apiVersion": "2026-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "namespaces/schemagroups",
"apiVersion": "2024-05-01-preview",
"apiVersion": "2026-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "namespaces",
"apiVersion": "2025-05-01-preview",
"apiVersion": "2026-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.eventhub"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ function New-AzEventHubNamespace{
[System.String]
${MinimumTlsVersion},

[Parameter(HelpMessage = "The IP address type for the namespace. Determines whether the namespace supports IPv4 only or both IPv4 and IPv6.")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
[System.String]
${IPAddressType},

[Parameter(HelpMessage = "The minimum TLS version for the cluster to support, e.g. '1.2'")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
[System.String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ function Set-AzEventHubNamespace{
# Run the command asynchronously
${NoWait},

[Parameter(HelpMessage = "The IP address type for the namespace. Determines whether the namespace supports IPv4 only or both IPv4 and IPv6.")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
[System.String]
${IPAddressType},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')]
[System.Uri]
Expand Down Expand Up @@ -197,6 +202,7 @@ function Set-AzEventHubNamespace{
$hasSkuCapacity = $PSBoundParameters.Remove('SkuCapacity')
$hasTag = $PSBoundParameters.Remove('Tag')
$hasAsJob = $PSBoundParameters.Remove('AsJob')
$hasIPAddressType = $PSBoundParameters.Remove('IPAddressType')
$hasGeoDataReplicationLocation = $PSBoundParameters.Remove('GeoDataReplicationLocation')
$hasGeoDataReplicationMaxReplicationLagDurationInSecond = $PSBoundParameters.Remove('GeoDataReplicationMaxReplicationLagDurationInSecond')
$null = $PSBoundParameters.Remove('WhatIf')
Expand Down Expand Up @@ -239,6 +245,9 @@ function Set-AzEventHubNamespace{
if ($GeoDataReplicationMaxReplicationLagDurationInSecond) {
$eventHubNamespace.GeoDataReplicationMaxReplicationLagDurationInSecond = $GeoDataReplicationMaxReplicationLagDurationInSecond
}
if($hasIPAddressType){
$eventHubNamespace.IPAddressType = $IPAddressType
}
if ($GeoDataReplicationLocation) {
$eventHubNamespace.GeoDataReplicationLocation = $GeoDataReplicationLocation
}
Expand Down
2 changes: 1 addition & 1 deletion src/EventHub/EventHub.Autorest/docs/Az.EventHub.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.EventHub
Module Guid: e218577f-a5ef-4d91-8828-dedf50f00ec9
Module Guid: 9c68a770-c357-4604-8540-e4546e52f1b2
Comment thread
schaudhari6254888 marked this conversation as resolved.
Download Help Link: https://learn.microsoft.com/powershell/module/az.eventhub
Help Version: 1.0.0.0
Locale: en-US
Expand Down
6 changes: 3 additions & 3 deletions src/EventHub/EventHub.Autorest/docs/Get-AzEventHub.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ Accept wildcard characters: False
```
### -ResourceGroupName
Name of the resource group within the azure subscription.
The name of the resource group.
The name is case insensitive.
```yaml
Type: System.String
Expand Down Expand Up @@ -199,8 +200,7 @@ Accept wildcard characters: False
```
### -SubscriptionId
Subscription credentials that uniquely identify a Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
The ID of the target subscription.
```yaml
Type: System.String[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ Accept wildcard characters: False
```
### -ResourceGroupName
Name of the resource group within the azure subscription.
The name of the resource group.
The name is case insensitive.
```yaml
Type: System.String
Expand All @@ -170,8 +171,7 @@ Accept wildcard characters: False
```
### -SubscriptionId
Subscription credentials that uniquely identify a Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
The ID of the target subscription.
```yaml
Type: System.String[]
Expand Down
38 changes: 31 additions & 7 deletions src/EventHub/EventHub.Autorest/docs/Get-AzEventHubCluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,39 @@ Get-AzEventHubCluster -Name <String> -ResourceGroupName <String> [-SubscriptionI
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

### Get1
```
Get-AzEventHubCluster -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

### GetViaIdentity
```
Get-AzEventHubCluster -InputObject <IEventHubIdentity> [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### GetViaIdentity1
```
Get-AzEventHubCluster -InputObject <IEventHubIdentity> [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### List1
```
Get-AzEventHubCluster -ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
```

### List2
```
Get-AzEventHubCluster [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### List3
```
Get-AzEventHubCluster -ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
```

## DESCRIPTION
Gets the resource description of the specified Event Hubs Cluster.

Expand Down Expand Up @@ -83,7 +105,7 @@ Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity
Parameter Sets: GetViaIdentity
Parameter Sets: GetViaIdentity, GetViaIdentity1
Aliases:

Required: True
Expand All @@ -98,7 +120,7 @@ The name of the Event Hubs Cluster.

```yaml
Type: System.String
Parameter Sets: Get
Parameter Sets: Get, Get1
Aliases: ClusterName

Required: True
Expand All @@ -109,11 +131,12 @@ Accept wildcard characters: False
```

### -ResourceGroupName
Name of the resource group within the azure subscription.
The name of the resource group.
The name is case insensitive.

```yaml
Type: System.String
Parameter Sets: Get, List1
Parameter Sets: Get, Get1, List1, List3
Aliases:

Required: True
Expand All @@ -124,12 +147,11 @@ Accept wildcard characters: False
```

### -SubscriptionId
Subscription credentials that uniquely identify a Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
The ID of the target subscription.

```yaml
Type: System.String[]
Parameter Sets: Get, List, List1
Parameter Sets: Get, Get1, List, List1, List2, List3
Aliases:

Required: False
Expand All @@ -150,6 +172,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

### Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICluster

### Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IClusterAutoGenerated

## NOTES

## RELATED LINKS
Expand Down
Loading