< Back

New-AzureRmEventGridTopic

Tue Jan 29, 2019 9:46 pm

NAME New-AzureRmEventGridTopic



SYNOPSIS

Creates a new Azure Event Grid Topic.





SYNTAX

New-AzureRmEventGridTopic [-ResourceGroupName] <String> [-Name] <String> [-Location] <String> [[-Tag] <Hashtable>] [-DefaultProfile

<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Creates a new Azure Event Grid Topic. Once the topic is created, an application can publish events to the topic endpoint.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Location <String>

The location of the topic



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

The name of the topic.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

The resource group in which the topic should be created.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Tag <Hashtable>

Hashtables which represents resource Tags.



Required? false

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

System.Collections.Hashtable





OUTPUTS

Microsoft.Azure.Commands.EventGrid.Models.PSTopic







NOTES









Example 1



PS C:\\> New-AzureRmEventGridTopic -ResourceGroupName MyResourceGroupName -Name Topic1 -Location westus2



Creates an Event Grid topic `Topic1` in the specified geographic location `westus2`, in resource group `MyResourceGroupName`.





Example 2



PS C:\\> New-AzureRmEventGridTopic -ResourceGroupName MyResourceGroupName -Name Topic1 -Location westus2 -Tag @{ Department="Finance";

Environment="Test" }



Creates an Event Grid topic `Topic1` in the specified geographic location `westus2`, in resource group `MyResourceGroupName` with the specified

tags "Department" and "Environment".







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... tgridtopic