Skip to content

Commit ba6ec66

Browse files
author
Ajit Navasare
authored
Fixed Cluster commands for EventHub cluster without tags and updated help text for AzEventHubGeoDRConfiguration (#13460)
1 parent fd71499 commit ba6ec66

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

src/EventHub/EventHub.Test/ScenarioTests/ClusterTest.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Tests Eventhub Cluster operations.
1919

2020
function ClusterTest
2121
{
22-
# Setup
22+
# Setup
2323
$location = "southcentralus"
2424
$clusterName = getAssetName "Eventhub-Cluster-"
2525
$resourceGroupName = getAssetName "RSG-Cluster"
26-
27-
Write-Debug " Create resource group"
26+
27+
Write-Debug " Create resource group"
2828
Write-Debug " Resource Group Name : $resourceGroupName"
2929
$ResultResourceGroup = New-AzResourceGroup -Name $resourceGroupName -Location $location -Force
3030

src/EventHub/EventHub/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed Cluster commands for EventHub cluster without tags
22+
* updated help text for PartnerNamespace of AzEventHubGeoDRConfiguration commands
2123

2224
## Version 1.7.0
2325
* Added optional switch parameter `TrustedServiceAccessEnabled` to `Set-AzEventHubNetworkRuleSet` cmdlet

src/EventHub/EventHub/Cmdlets/DRConfig/NewAzureEventHubGeoDRConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class NewAzureRmEventHubGeoDRConfiguration : AzureEventHubsCmdletBase
4646
[ValidateNotNullOrEmpty]
4747
public string Name { get; set; }
4848

49-
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 3, HelpMessage = "DR Configuration PartnerNamespace")]
49+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 3, HelpMessage = "DR Configuration PartnerNamespace ARM ID")]
5050
[ValidateNotNullOrEmpty]
5151
public string PartnerNamespace { get; set; }
5252

src/EventHub/EventHub/Models/PSEventHubDRConfigurationAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public PSEventHubDRConfigurationAttributes(ArmDisasterRecovery drResource)
5151
public ProvisioningStateDR? ProvisioningState { get; set; }
5252

5353
/// <summary>
54-
/// Gets or sets a value that indicates partner namespace
54+
/// Gets or sets a value that indicates partner namespace ARM ID
5555
/// </summary>
5656
public string PartnerNamespace { get; set; }
5757

src/EventHub/EventHub/Models/PSEventHubsClusterAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public PSEventHubClusterAttributes(Cluster cluster)
3636
UpdatedAt = cluster.UpdatedAt;
3737
Status = cluster.Status;
3838
Sku = new PSEventHubsClusterSkuAttributes(cluster.Sku);
39-
if (cluster.Tags.Count > 0)
39+
if (cluster.Tags != null)
4040
{
4141
Tags = new Dictionary<string, string>(cluster.Tags);
4242
}

src/EventHub/EventHub/help/New-AzEventHubGeoDRConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Accept wildcard characters: False
145145
```
146146
147147
### -PartnerNamespace
148-
DR Configuration PartnerNamespace
148+
DR Configuration PartnerNamespace ARM ID
149149
150150
```yaml
151151
Type: System.String

0 commit comments

Comments
 (0)