Support site swap (deployment slot swap) in the new Azure CLI (az)
The old Azure CLI supported site swap, the new one doesn't. You have to write a PowerShell script to invoke site swap for deployment slots.
John Leidegren commented
This has been fixed in a later version of Azure CLI 2.0. Just get the latest copy.