Skip to the content.

Previous page >

Content

Content of this template is explained in the following article An Azure notification API for Slack, Office 365 and more….

Deployment through the Portal

Deployment through the PowerShell

# Variables
$AzureRmSubscriptionName = "mvp-sub1"
$RgName = "infr-hub-prd-rg1"
$templateUri = "https://raw.githubusercontent.com/JamesDLD/AzureRm-Template/master/Create-AzNotificationApi/template.json"

## Connectivity
# Login first with Connect-AzAccount if not using Cloud Shell
$AzureRmContext = Get-AzSubscription -SubscriptionName $AzureRmSubscriptionName | Set-AzContext -ErrorAction Stop
Select-AzSubscription -Name $AzureRmSubscriptionName -Context $AzureRmContext -Force -ErrorAction Stop

## Action
Write-Host "Deploying to the resource group : $RgName an Azure Logic App for slack and Office 365 notifications" -ForegroundColor Cyan
New-AzResourceGroupDeployment -Name "NotificationApi" -ResourceGroupName $RgName `
  -TemplateUri $TemplateUri `
  -Confirm -ErrorAction Stop