Skip to content

Commit 7c1aab7

Browse files
authored
Merge pull request #191267 from carlrab/html_postgresql
add html tag
2 parents e8f2846 + 9ac3305 commit 7c1aab7

9 files changed

+19
-19
lines changed

articles/postgresql/howto-manage-vnet-using-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ VNets and Azure service resources can be in the same or different subscriptions.
3939

4040
### Run the script
4141

42-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-vnet/create-postgresql-server.sh" range="4-50":::
42+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-vnet/create-postgresql-server.sh" id="FullScript":::
4343

4444
## Clean up deployment
4545

articles/postgresql/quickstart-create-server-database-azure-cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ The following values are used in subsequent commands to create the database and
2828

2929
Change the location as appropriate for your environment. Replace `0.0.0.0` with the IP address range to match your specific environment. Use the public IP address of the computer you're using to restrict access to the server to only your IP address.
3030

31-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="4-18":::
31+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="SetParameterValues":::
3232

3333
## Create a resource group
3434

3535
Create a resource group with the [az group create](/cli/azure/group) command. An Azure resource group is a logical container into which Azure resources are deployed and managed. The following example creates a resource group named *myResourceGroup* in the *eastus* location:
3636

37-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="20-22":::
37+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="CreateResourceGroup":::
3838

3939
## Create a server
4040

4141
Create a server with the [az postgres server create](/cli/azure/postgres/server#az-postgres-server-create) command.
4242

43-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="24-27":::
43+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="CreateServer":::
4444

4545
> [!NOTE]
4646
>
@@ -58,7 +58,7 @@ Create a server with the [az postgres server create](/cli/azure/postgres/server#
5858

5959
Create a firewall rule with the [az postgres server firewall-rule create](/cli/azure/mysql/server/firewall-rule) command to give your local environment access to connect to the server.
6060

61-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="29-31":::
61+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="CreateFirewallRule":::
6262

6363
> [!TIP]
6464
> If you don't know your IP address, go to [WhatIsMyIPAddress.com](https://whatismyipaddress.com/) to get it.
@@ -70,7 +70,7 @@ Create a firewall rule with the [az postgres server firewall-rule create](/cli/a
7070

7171
To list the existing server firewall rules, run the [az postgres server firewall-rule list](/cli/azure/postgres/server/firewall-rule) command.
7272

73-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="33-36":::
73+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="ListFirewallRules":::
7474

7575
The output lists the firewall rules, if any, by default in JSON format. You may use the switch `--output table` for a more readable table format as the output.
7676

articles/postgresql/scripts/sample-change-server-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This sample CLI script lists all available configuration parameters as well as t
2323

2424
### Run the script
2525

26-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/change-server-configurations/change-server-configurations.sh" range="4-34":::
26+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/change-server-configurations/change-server-configurations.sh" id="FullScript":::
2727

2828
## Clean up deployment
2929

articles/postgresql/scripts/sample-create-server-and-firewall-rule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This sample CLI script creates an Azure Database for PostgreSQL server and confi
2424

2525
### Run the script
2626

27-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="4-36":::
27+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="FullScript":::
2828

2929
## Clean up deployment
3030

articles/postgresql/scripts/sample-create-server-with-vnet-rule.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This sample CLI script creates an Azure Database for PostgreSQL server and confi
2424

2525
### Run the script
2626

27-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-vnet/create-postgresql-server.sh" range="4-50":::
27+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-vnet/create-postgresql-server.sh" id="FullScript":::
2828

2929
## Clean up resources
3030

@@ -41,12 +41,12 @@ This script uses the commands outlined in the following table:
4141
| **Command** | **Notes** |
4242
|---|---|
4343
| [az group create](/cli/azure/group#az_group_create) | Creates a resource group in which all resources are stored. |
44-
| [az postgresql server create](/cli/azure/postgres/server/vnet-rule?view=azure-cli-latest#az-postgres-server-vnet-rule-create) | Creates a PostgreSQL server that hosts the databases. |
44+
| [az postgresql server create](/cli/azure/postgres/server/vnet-rule#az-postgres-server-vnet-rule-create) | Creates a PostgreSQL server that hosts the databases. |
4545
| [az network vnet list-endpoint-services](/cli/azure/network/vnet#az-network-vnet-list-endpoint-services#az-network-vnet-list-endpoint-services) | List which services support VNET service tunneling in a given region. |
4646
| [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create) | Creates a virtual network. |
4747
| [az network vnet subnet create](/cli/azure/network/vnet#az-network-vnet-subnet-create) | Create a subnet and associate an existing NSG and route table. |
4848
| [az network vnet subnet show](/cli/azure/network/vnet#az-network-vnet-subnet-show) |Shows details of a subnet. |
49-
| [az postgresql server vnet-rule create](/cli/azure/postgres/server/vnet-rule?view=azure-cli-latest#az-postgres-server-vnet-rule-create) | Create a virtual network rule to allows access to a PostgreSQL server. |
49+
| [az postgresql server vnet-rule create](/cli/azure/postgres/server/vnet-rule#az-postgres-server-vnet-rule-create) | Create a virtual network rule to allows access to a PostgreSQL server. |
5050
| [az group delete](/cli/azure/group#az_group_delete) | Deletes a resource group including all nested resources. |
5151

5252
## Next steps

articles/postgresql/scripts/sample-point-in-time-restore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This sample CLI script restores a single Azure Database for PostgreSQL server to
2424

2525
### Run the script
2626

27-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/backup-restore/backup-restore.sh" range="4-39":::
27+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/backup-restore/backup-restore.sh" id="FullScript":::
2828

2929
## Clean up deployment
3030

articles/postgresql/scripts/sample-scale-server-up-or-down.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This sample CLI script scales compute and storage for a single Azure Database fo
2626

2727
### Run the script
2828

29-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/scale-postgresql-server/scale-postgresql-server.sh" range="4-39":::
29+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/scale-postgresql-server/scale-postgresql-server.sh" id="FullScript":::
3030

3131
## Clean up deployment
3232

articles/postgresql/scripts/sample-server-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This sample CLI script enables and downloads the slow query logs of a single Azu
2424

2525
### Run the script
2626

27-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/server-logs/server-logs.sh" range="4-51":::
27+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/server-logs/server-logs.sh" id="FullScript":::
2828

2929
## Clean up deployment
3030

articles/postgresql/tutorial-design-database-using-azure-cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ The following values are used in subsequent commands to create the database and
3535

3636
Change the location as appropriate for your environment. Replace `0.0.0.0` with the IP address range to match your specific environment. Use the public IP address of the computer you're using to restrict access to the server to only your IP address.
3737

38-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="4-18":::
38+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="SetParameterValues":::
3939

4040
## Create a resource group
4141

4242
Create a resource group with the [az group create](/cli/azure/group) command. An Azure resource group is a logical container into which Azure resources are deployed and managed. The following example creates a resource group named *myResourceGroup* in the *eastus* location:
4343

44-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="19-21":::
44+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="CreateResourceGroup":::
4545

4646
## Create a server
4747

4848
Create a server with the [az postgres server create](/cli/azure/postgres/server#az-postgres-server-create) command.
4949

50-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="22-24":::
50+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="CreateServer":::
5151

5252
> [!NOTE]
5353
>
@@ -65,7 +65,7 @@ Create a server with the [az postgres server create](/cli/azure/postgres/server#
6565

6666
Create a firewall rule with the [az postgres server firewall-rule create](/azure/postgresql/concepts-firewall-rules) command to give your local environment access to connect to the server.
6767

68-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="25-27":::
68+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="CreateFirewallRule":::
6969

7070
> [!TIP]
7171
> If you don't know your IP address, go to [WhatIsMyIPAddress.com](https://whatismyipaddress.com/) to get it.
@@ -77,7 +77,7 @@ Create a firewall rule with the [az postgres server firewall-rule create](/azure
7777

7878
To list the existing server firewall rules, run the [az postgres server firewall-rule list](/cli/azure/postgres/server/firewall-rule) command.
7979

80-
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" range="32-36":::
80+
:::code language="azurecli" source="~/azure_cli_scripts/postgresql/create-postgresql-server-and-firewall-rule/create-postgresql-server-and-firewall-rule.sh" id="ListFirewallRules":::
8181

8282
The output lists the firewall rules, if any, by default in JSON format. You may use the switch `--output table` for a more readable table format as the output.
8383

0 commit comments

Comments
 (0)