Skip to content

Commit

Permalink
Fixed Cluster commands for EventHub cluster without tags and updated …
Browse files Browse the repository at this point in the history
…help text for AzEventHubGeoDRConfiguration (Azure#13460)
  • Loading branch information
Ajit Navasare authored Nov 9, 2020
1 parent fd71499 commit ba6ec66
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/EventHub/EventHub.Test/ScenarioTests/ClusterTest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ Tests Eventhub Cluster operations.

function ClusterTest
{
# Setup
# Setup
$location = "southcentralus"
$clusterName = getAssetName "Eventhub-Cluster-"
$resourceGroupName = getAssetName "RSG-Cluster"

Write-Debug " Create resource group"
Write-Debug " Create resource group"
Write-Debug " Resource Group Name : $resourceGroupName"
$ResultResourceGroup = New-AzResourceGroup -Name $resourceGroupName -Location $location -Force

Expand Down
2 changes: 2 additions & 0 deletions src/EventHub/EventHub/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
* Fixed Cluster commands for EventHub cluster without tags
* updated help text for PartnerNamespace of AzEventHubGeoDRConfiguration commands

## Version 1.7.0
* Added optional switch parameter `TrustedServiceAccessEnabled` to `Set-AzEventHubNetworkRuleSet` cmdlet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class NewAzureRmEventHubGeoDRConfiguration : AzureEventHubsCmdletBase
[ValidateNotNullOrEmpty]
public string Name { get; set; }

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public PSEventHubDRConfigurationAttributes(ArmDisasterRecovery drResource)
public ProvisioningStateDR? ProvisioningState { get; set; }

/// <summary>
/// Gets or sets a value that indicates partner namespace
/// Gets or sets a value that indicates partner namespace ARM ID
/// </summary>
public string PartnerNamespace { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public PSEventHubClusterAttributes(Cluster cluster)
UpdatedAt = cluster.UpdatedAt;
Status = cluster.Status;
Sku = new PSEventHubsClusterSkuAttributes(cluster.Sku);
if (cluster.Tags.Count > 0)
if (cluster.Tags != null)
{
Tags = new Dictionary<string, string>(cluster.Tags);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Accept wildcard characters: False
```
### -PartnerNamespace
DR Configuration PartnerNamespace
DR Configuration PartnerNamespace ARM ID
```yaml
Type: System.String
Expand Down

0 comments on commit ba6ec66

Please sign in to comment.