Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Az Cli commands for flexible server. #43109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ Replace the placeholders with the following values, which are used throughout th
#### Create an Azure Database for PostgreSQL server

```Azure CLI
az postgres server create \
az postgres flexible-server create \
--resource-group $AZ_RESOURCE_GROUP \
--name $AZ_DATABASE_NAME \
--location $AZ_LOCATION \
--sku-name B_Gen5_1 \
--storage-size 5120 \
--sku-name Standard_D16s_v3 \
--storage-size 32 \
--output tsv
```

Expand All @@ -105,10 +105,10 @@ If you are going to connect to the PostgreSQL server from local machine, you nee
it.

```Azure CLI
az postgres server firewall-rule create \
az postgres flexible-server firewall-rule create \
--resource-group $AZ_RESOURCE_GROUP \
--name $AZ_DATABASE_NAME-database-allow-local-ip \
--server $AZ_DATABASE_NAME \
--name $AZ_DATABASE_NAME \
--rule-name $AZ_DATABASE_NAME-database-allow-local-ip \
--start-ip-address $AZ_LOCAL_IP_ADDRESS \
--end-ip-address $AZ_LOCAL_IP_ADDRESS \
--output tsv
Expand All @@ -120,11 +120,11 @@ To use Microsoft Entra access with Azure Database for PostgreSQL, you should set
Only a Microsoft Entra admin user can create/enable users for Microsoft Entra-based authentication.

```Azure CLI
az postgres server ad-admin create \
az postgres flexible-server ad-admin create \
--resource-group $AZ_RESOURCE_GROUP \
--server-name $AZ_DATABASE_NAME \
--display-name $AZ_POSTGRESQL_AD_ADMIN_USERNAME \
--object-id `(az ad signed-in-user show --query id -o tsv)`
--object-id $(az ad signed-in-user show --query id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does removing -o tsv break this? Perhaps not since the shell consumes the quotes that are added by removing it?

```

## Key concepts
Expand Down
Loading