Hello,
I am trying to find a way to pull the webjob status from a webapp blue slot
I have already tried using:
az cli: gives information about the blue slot name but not the status
$BlueSlotStatus = az webapp webjob continuous list --name "$($WebApp.WebApp)/blue" --resource-group $WebApp.ResourceGroup | ConvertFrom-Jsonpowershell AzureRM: I get the blue slot status but nothing related to the webjob in that slot
$BlueSlotStatus = Get-AzureRmResource -ResourceGroupName $WebApp.ResourceGroup -ResourceName "$($WebApp.WebApp)/blue" -ResourceType Microsoft.Web/sites/slots
The ideal situation would be using AzureRM modules. I found this stack overflow post but it's using Get-AzureWebsiteJob which is a really old command and needs Select-AzureSubscription command, so I would have 2 different commands in the same script to change the subscription and I do not like that approach
https://stackoverflow.com/questions/40400457/how-to-list-all-running-webjobs-within-an-azure-subscription-using-powershell
Any other idea?
Thanks for the help !
