Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.26 KB

File metadata and controls

33 lines (22 loc) · 1.26 KB
title Azure PowerShell script sample - Create custom topic
description This article provides a sample Azure PowerShell script that shows how to create an Event Grid custom topic.
ms.devlang powershell
ms.custom devx-track-azurepowershell
ms.topic sample
ms.date 09/15/2021

Create Event Grid custom topic with PowerShell

This script creates an Event Grid custom topic.

[!INCLUDE updated-for-az]

[!INCLUDE quickstarts-free-trial-note]

Sample script

[!code-powershellmain]

Script explanation

This script uses the following command to create the custom topic. Each command in the table links to command-specific documentation.

Command Notes
New-AzEventGridTopic Create an Event Grid custom topic.

Next steps