az postgres flexible-server stop --resource-group <resource_group> --name <server>
如果您嘗試停止處於狀態的伺服器 Available ,您會收到如下的錯誤:
Server will be automatically started after 7 days if you do not perform a manual start operation
(ServerIsNotReady) Restart or Stop Server can only be performed on Started servers. Server Name = <server>, Current Server State = Stopped
Code: ServerIsNotReady
Message: Restart or Stop Server can only be performed on Started servers. Server Name = <server>, Current Server State = Stopped