Skip to content

Commit 06ced60

Browse files
committed
More additions
1 parent c424250 commit 06ced60

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

articles/notification-hubs/create-notification-hub-template.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ ms.service: notification-hubs
88
ms.topic: quickstart
99
ms.custom: subject-armqs
1010
ms.author: sethm
11-
ms.date: 05/14/2020
11+
ms.date: 05/15/2020
1212
ms.reviewer: thsomasu
13-
ms.lastreviewed: 05/14/2020
13+
ms.lastreviewed: 05/15/2020
1414
---
1515

1616
# Quickstart: create a notification hub using an Azure Resource Manager template
@@ -42,45 +42,40 @@ The template used in this quickstart is from [Azure Quickstart templates](https:
4242

4343
## Deploy the template
4444

45-
Select the following image to sign in to Azure and open a template. The template creates a key vault and a secret.
45+
Select the following image to sign in to Azure and open a template. The template takes a Notification Hubs namespace name as a parameter. The template then creates a namespace with that name and a notification hub named **MyHub** within that namespace.
4646

4747
[![Deploy to Azure](./media/create-notification-hub-template/deploy-to-azure.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-notification-hub%2Fazuredeploy.json)
4848

4949
## Review deployed resources
5050

51-
<!-- You can also use the title "Validate the deployment". -->
52-
5351
You can either use the Azure portal to check the deployed resources, or use Azure CLI or Azure PowerShell script to list the deployed resources.
5452

55-
## Clean up resources
56-
57-
When no longer needed, delete the resource group, which deletes the resources in the resource group.
53+
# [PowerShell](#tab/PowerShell)
5854

59-
<!--
60-
61-
Choose Azure CLI, Azure PowerShell, or Azure portal to delete the resource group.
55+
```azurepowershell-interactive
56+
Get-AzNotificationHub -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup"
57+
Get-AzNotificationHubsNamespace -Namespace "ContosoNamespace"
58+
```
6259

63-
Here are the samples for Azure CLI and Azure PowerShell:
60+
# [CLI](#tab/CLI)
6461

6562
```azurecli-interactive
66-
echo "Enter the Resource Group name:" &&
67-
read resourceGroupName &&
68-
az group delete --name $resourceGroupName &&
69-
echo "Press [ENTER] to continue ..."
63+
az notification-hub show --resource-group ContosoNotificationsGroup --namespace-name ContosoNamespace --name MyHub
64+
az notification-hub namespace show --resource-group ContosoNotificationsGroup --name ContosoNamespace
7065
```
7166

72-
```azurepowershell-interactive
67+
## Clean up resources
68+
69+
When no longer needed, delete the resource group, which deletes the resources in the resource group.
70+
71+
```powershell
7372
$resourceGroupName = Read-Host -Prompt "Enter the Resource Group name"
7473
Remove-AzResourceGroup -Name $resourceGroupName
7574
Write-Host "Press [ENTER] to continue..."
7675
```
7776

78-
-->
79-
8077
## Next steps
8178

82-
<!-- You can either make the next steps similar to the next steps in your other quickstarts, or point users to the following tutorial.-->
83-
8479
For a step-by-step tutorial that guides you through the process of creating a template, see:
8580

8681
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)