在 ARM 模式下使用 xPlat CLI 交换 Web 应用程序

Swap a Web App using xPlat CLI in ARM mode

我知道如何在 asm 模式下使用 xPlat CLI 交换插槽:

azure site swap 'sitename' 'slotname'

但是,如何在 ARM 模式下使用 xPlat CLI 交换插槽?

注意:我不是寻找Azure CLI 2.0

只需尝试使用 azure webapp config set --slot

您可以通过使用 azure webapp config set --slot -h 获得更多帮助。

root@shui:~# azure webapp config set --slot -h
help:    Set webapp configuration
example:  webapp config set RGName WebAppName --alwayson true --numberofworkers 1
help:    
help:    Usage: webapp config set [options] <resource-group> <name>
help:      --slot <slot>                                                the name of the slot