diff --git a/src/EventGrid/EventGrid/help/Get-AzEventGridDomainTopic.md b/src/EventGrid/EventGrid/help/Get-AzEventGridDomainTopic.md index 40930be78656..dfad9174e0a4 100644 --- a/src/EventGrid/EventGrid/help/Get-AzEventGridDomainTopic.md +++ b/src/EventGrid/EventGrid/help/Get-AzEventGridDomainTopic.md @@ -78,7 +78,7 @@ List all the Event Grid domain topics under Event Grid domain \`Domain1\` in res ```powershell $result=Get-AzEventGridDomainTopic -ResourceGroup MyResourceGroupName -DomainName Domain1 -echo $result.PsDomainTopicsList +Write-Output $result.PsDomainTopicsList ``` ```output @@ -112,7 +112,7 @@ List all the Event Grid domain topics under Event Grid domain \`Domain1\` in res ```powershell $result=Get-AzEventGridDomainTopic -ResourceId "/subscriptions/$subscriptionId/resourceGroups/MyResourceGroupName/providers/Microsoft.EventGrid/domains/Domain1" -echo $result.PsDomainTopicsList +Write-Output $result.PsDomainTopicsList ``` ```output @@ -155,7 +155,7 @@ while ($result.NextLink -ne $Null) $total += $result.Count } -echo "Total number of domain topics is $Total" +Write-Output "Total number of domain topics is $Total" ``` ## PARAMETERS diff --git a/src/EventGrid/EventGrid/help/New-AzEventGridSystemTopic.md b/src/EventGrid/EventGrid/help/New-AzEventGridSystemTopic.md index 0341cd2ea83b..9a1ea3f2f4a1 100644 --- a/src/EventGrid/EventGrid/help/New-AzEventGridSystemTopic.md +++ b/src/EventGrid/EventGrid/help/New-AzEventGridSystemTopic.md @@ -38,7 +38,7 @@ Creates an Event Grid System topic \`Topic1\` for the Azure ServiceBus namespac ### Example 2 ```powershell -New-AzEventGridTopic -ResourceGroupName MyResourceGroupName -Name Topic1 -Source ServiceBusNamespaceResourceId -TopicType 'Microsoft.ServiceBus.Namespaces' -Location westus2 -Tag @{ Department="Finance"; Environment="Test" } +New-AzEventGridSystemTopic -ResourceGroupName MyResourceGroupName -Name Topic1 -Source ServiceBusNamespaceResourceId -TopicType 'Microsoft.ServiceBus.Namespaces' -Location westus2 -Tag @{ Department="Finance"; Environment="Test" } ``` Creates an Event Grid System topic \`Topic1\` for the Azure ServiceBus namespace with resource id \`ServiceBusNamespaceResourceId\` in the specified geographic location \`westus2\`, in resource group \`MyResourceGroupName\` with the specified tags "Department" and "Environment".