Azure Database for PostgreSQL - 单个服务器的 Azure CLI 示例Azure CLI samples for Azure Database for PostgreSQL - Single Server

下表包含指向示例 Azure CLI 脚本的链接,这些脚本针对用于 PostgreSQL 的 Azure 数据库。The following table includes links to sample Azure CLI scripts for Azure Database for PostgreSQL.

创建服务器Create a server
创建服务器和防火墙规则Create a server and firewall rule Azure CLI 脚本,用于创建 Azure Database for PostgreSQL 并配置服务器级防火墙规则。Azure CLI script that creates an Azure Database for PostgreSQL server and configures a server-level firewall rule.
缩放服务器Scale a server
缩放服务器Scale a server 此 Azure CLI 脚本可扩大或缩放 Azure Database for PostgreSQL ,以允许更改性能要求。Azure CLI script that scales an Azure Database for PostgreSQL server up or down to allow for changing performance needs.
更改服务器配置Change server configurations
更改服务器配置Change server configurations Azure CLI 脚本,用于更改 Azure Database for PostgreSQL 的配置选项。Azure CLI script that change configurations options of an Azure Database for PostgreSQL server.
还原服务器Restore a server
还原服务器Restore a server Azure CLI 脚本,用于将 Azure Database for PostgreSQL 还原到前一个时间点。Azure CLI script that restores an Azure Database for PostgreSQL server to a previous point in time.
下载服务器日志Download server logs
启用和下载服务器日志Enable and download server logs Azure CLI 脚本,用于启用和下载 Azure Database for PostgreSQL 服务器的服务器日志。Azure CLI script that enables and downloads server logs of an Azure Database for PostgreSQL server.