Get-Deployment returns exception when the slot is empty
description
When using
Get-Deployment -Slot "staging"
If the staging deployment does not exist, instead of returning $null, it returns an exception:
HTTP Status Code: ResourceNotFound - HTTP Error Message: No deployments were found.
The better solution would be for me to be able to call Get-Deployment without any -Slot parameter, to return all the existing deployments so I can decide to use either Set-Deployment or New-Deployment.