I have provisioned multiple resources in Azure by using ARM templates through the Azure DevOps CI & CD pipelines.
I have followed this documentation to get the recent deployment details based on the deployment name.
I am getting the recent deployment details by using this PowerShell command.
$deployments = Get-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName | Sort-Object Timestamp -Descending
The above PS command is giving all the deployment details in the resource group. But I want to get the deployment details whatever I have deployed through the Azure DevOps CD pipeline.
For Example:
In the release - 1, I have deployed below resources:
AppService-Deployment
Storage-Deployment
Service Bus-Deployment
I want to send the email with the above three deployment details
In the release -2, I have deployed below resources:
SQL-Deployment
Cosmos-Deployment
I want to send the email with the above two deployment details
So, can anyone suggest me how to do this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…