Reputation: 5530
I am working on ARM templates, currently I developed ARM templates for Web App and Azure SQL database. And deployed those are in Azure through the VSTS release definition.
I want to send mail to project manager, whenever Infrastructure provisioning completed in azure. For that I used Send Grid Email task but I have few questions like:
Upvotes: 0
Views: 682
Reputation: 33708
You can’t get the output of Web App and ARM template deployment tasks, you can get the related information by calling Azure PowerShell or other way, for example: Get-AzureRmResourceGroup.
Regarding send email during build/release, you can use Send Grid Email or other task, just per to your requirement or which you prefer.
Update:
Simple sample to get the output:
$r=New-AzureRmResourceGroupDeployment -Name ExampleDeployment -ResourceGroupName xxx -TemplateFile t.json
Write-Host "##vso[task.setvariable variable=pState;]$($r.ProvisioningState)"
Upvotes: 1