az postgres flexible-server start --resource-group <resource_group> --name <server>
如果尝试启动未处于 Stopped 状态的服务器,你将收到如下所示的错误:
(ServerIsNotStopped) Start Server can only be performed on Stopped servers. Seever Name = <server>, Current Server State = Updating
Code: ServerIsNotStopped
Message: Start Server can only be performed on Stopped servers. Server Name = <server>, Current Server State = Updating
注意
启动服务器后,Azure Database for PostgreSQL 灵活服务器可以进行所有管理操作。