Skip to content

Commit 14254a3

Browse files
Fix Az.EventHub Syntax Errors (Azure#17613)
1 parent 31e35cd commit 14254a3

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

src/EventHub/EventHub/help/Add-AzEventHubIPRule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Add a single IP rule to the NetworkRuleSet of the given Namespace
3232

3333
### Example 1
3434
```powershell
35-
Add-AzEventHubIPRule -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-2389 -IpMask "11.22.33.44" -Action Allow
35+
Add-AzEventHubIPRule -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-2389 -IpMask "11.22.33.44" -Action Allow
3636
```
3737

3838
```output
@@ -47,7 +47,7 @@ add the IPRule with IpMask "11.22.33.44" and Action Allow for the given namespac
4747

4848
### Example 2
4949
```powershell
50-
Add-AzEventHubIPRule -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-2389 -IpRuleObject $ipruleobject
50+
Add-AzEventHubIPRule -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-2389 -IpRuleObject $ipruleobject
5151
```
5252

5353
```output

src/EventHub/EventHub/help/Add-AzEventHubVirtualNetworkRule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Add a single VirtualNetworkRule to NetworkRuleSet for the given Namespace
3333

3434
### Example 1
3535
```powershell
36-
Add-AzEventHubVirtualNetworkRule -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-2389 -SubnetId "/subscriptions/SubscriptionId/resourcegroups/ResourceGroup/v-ajnavtest/providers/Microsoft.Network/virtualNetworks/sbehvnettest1/subnets/sbdefault01" -IgnoreMissingVnetServiceEndpoint
36+
Add-AzEventHubVirtualNetworkRule -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-2389 -SubnetId "/subscriptions/SubscriptionId/resourcegroups/ResourceGroup/v-ajnavtest/providers/Microsoft.Network/virtualNetworks/sbehvnettest1/subnets/sbdefault01" -IgnoreMissingVnetServiceEndpoint
3737
```
3838

3939
```output
@@ -48,7 +48,7 @@ Adds the given Subnet and IgnoreMissingVnetServiceEndpoint (VirtualNetworkRule)
4848

4949
### Example 2
5050
```powershell
51-
Add-AzEventHubVirtualNetworkRule -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-2389 -VirtualNetworkRuleObject $virtualruleset1
51+
Add-AzEventHubVirtualNetworkRule -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-2389 -VirtualNetworkRuleObject $virtualruleset1
5252
```
5353

5454
```output

src/EventHub/EventHub/help/Get-AzEventHub.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Returns the details of the Event Hub \`MyEventHubName\`.
4040

4141
### Example 2: List of EventHub in specified Namespace
4242
```powershell
43-
Get-AzEventHub -ResourceGroup MyResourceGroupName -NamespaceName MyNamespaceName
43+
Get-AzEventHub -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName
4444
```
4545

4646
Returns a list of Event Hubs in the namespace \`MyNamespaceName\`.

src/EventHub/EventHub/help/Remove-AzEventHubIPRule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Remove a single IP rule to the NetworkRuleSet of the given Namespace
3232

3333
### Example 1
3434
```powershell
35-
Remove-AzEventHubIPRule -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-2389 -IpMask "11.22.33.44"
35+
Remove-AzEventHubIPRule -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-2389 -IpMask "11.22.33.44"
3636
```
3737

3838
Removes IpMask of the NetworkRuleSet of the given namespace

src/EventHub/EventHub/help/Remove-AzEventHubNetworkRuleSet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Removes the NetworkRuleSet for the Given Namespace
3737

3838
### Example 1
3939
```powershell
40-
Remove-AzEventHubNetworkRuleSet -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-1375 -PassThru
40+
Remove-AzEventHubNetworkRuleSet -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-1375 -PassThru
4141
```
4242

4343
```output

src/EventHub/EventHub/help/Remove-AzEventHubVirtualNetworkRule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ Removes the single given VirtualNetworkRule for the NetworkRuleSet of the Namesp
3232

3333
### Example 1
3434
```powershell
35-
Remove-AzEventHubVirtualNetworkRule -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-2389 -SubnetId "/subscriptions/SubscriptionId/resourcegroups/ResourceGroup/v-ajnavtest/providers/Microsoft.Network/virtualNetworks/sbehvnettest1/subnets/sbdefault01"
35+
Remove-AzEventHubVirtualNetworkRule -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-2389 -SubnetId "/subscriptions/SubscriptionId/resourcegroups/ResourceGroup/v-ajnavtest/providers/Microsoft.Network/virtualNetworks/sbehvnettest1/subnets/sbdefault01"
3636
```
3737

3838
Removes the single given VirtualNetworkRule for the NetworkRuleSet of the Namespace
3939

4040
### Example 2
4141
```powershell
42-
Remove-AzEventHubVirtualNetworkRule -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-2389 -VirtualNetworkRuleObject $virtualruleset1
42+
Remove-AzEventHubVirtualNetworkRule -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-2389 -VirtualNetworkRuleObject $virtualruleset1
4343
```
4444

4545
Remove the $virtualruleset1 of NetworkRuleSet for the given Namespace

src/EventHub/EventHub/help/Set-AzEventHubNetworkRuleSet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Update the NetworkruleSet of the given Namespace in the current Azure subscripti
4242
```powershell
4343
$IpRules = @([Microsoft.Azure.Commands.EventHub.Models.PSNWRuleSetIpRulesAttributes] @{IpMask = "4.4.4.4";Action = "Allow"},[Microsoft.Azure.Commands.EventHub.Models.PSNWRuleSetIpRulesAttributes] @{IpMask = "3.3.3.3";Action = "Allow"})
4444
$VirtualNetworkRules = @([Microsoft.Azure.Commands.EventHub.Models.PSNWRuleSetVirtualNetworkRulesAttributes]@{Subnet=@{Id="/subscriptions/subscriptionId/resourcegroups/ResourceGroup/providers/Microsoft.Network/virtualNetworks/sbehvnettest1/subnets/default"};IgnoreMissingVnetServiceEndpoint=$True})
45-
Set-AzEventHubNetworkRuleSet -ResourceGroupName v-ajnavtest -Namespace EventHub-Namespace1-1375 -IPRule $IpRules -VirtualNetworkRule $VirtualNetworkRules -DefaultAction "Allow" -Debug
45+
Set-AzEventHubNetworkRuleSet -ResourceGroupName v-ajnavtest -Name EventHub-Namespace1-1375 -IPRule $IpRules -VirtualNetworkRule $VirtualNetworkRules -DefaultAction "Allow" -Debug
4646
```
4747

4848
```output
@@ -58,7 +58,7 @@ Update the NetworkRuleSet using -IPRule and -VirtualNetworkRule parameters
5858
### Example 2
5959
```powershell
6060
$getresult = Get-AzEventHubNetworkRuleSet -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-1375
61-
Set-AzEventHubNetworkRuleSet -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-1375 -InputObject $getresult
61+
Set-AzEventHubNetworkRuleSet -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-1375 -InputObject $getresult
6262
```
6363

6464
```output
@@ -74,7 +74,7 @@ Update the NetworkRuleSet using -InputObject
7474

7575
### Example 3
7676
```powershell
77-
Set-AzEventHubNetworkRuleSet -ResourceGroupName v-ajnavtest -Namespace Eventhub-Namespace1-1375 -ResourceId /subscriptions/SubscriptionId/resourcegroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace1-1375
77+
Set-AzEventHubNetworkRuleSet -ResourceGroupName v-ajnavtest -Name Eventhub-Namespace1-1375 -ResourceId /subscriptions/SubscriptionId/resourcegroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace1-1375
7878
```
7979

8080
```output

0 commit comments

Comments
 (0)