| 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 |
This script creates an Event Grid custom topic.
[!INCLUDE updated-for-az]
[!INCLUDE quickstarts-free-trial-note]
[!code-powershellmain]
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. |
- For an introduction to managed applications, see Azure Managed Application overview.
- For more information on PowerShell, see Azure PowerShell documentation.