I am trying to get the Azure Event hub connection string by using PowerShell script (ps1 file) but it's coming with primary and secondary connection strings How Do I separate these values? I am only interested primary connection string
this the document I am using powershell
Get-AzEventHubKey -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -EventHubName MyEventHubName -AuthorizationRuleName MyAuthRuleName


Get-AzEventHubKey | Select-Object -Property PrimaryConnectionString | Format-List