Skip to content

Commit f3b7c65

Browse files
authored
feat: update bash to shell for code blocks (#1104)
1 parent 9cc8509 commit f3b7c65

16 files changed

+80
-80
lines changed

content/nginxaas-azure/client-tools/cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ F5 NGINXaaS for Azure (NGINXaaS) deployments can be managed using the [Azure CLI
2020

2121
In order to install and manage your NGINXaaaS deployments using the Azure CLI, you will need to install the `nginx` extension:
2222

23-
```bash
23+
```shell
2424
az extension add --name nginx --allow-preview true
2525
```
2626

2727
## Update NGINXaaS extension
2828

2929
Ensure you are running the latest version of the `nginx` CLI extension to take advantage of the latest capabilities available on your NGINXaaS deployments:
3030

31-
```bash
31+
```shell
3232
az extension update --name nginx --allow-preview true
3333
```

content/nginxaas-azure/disaster-recovery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This guide describes how to configure disaster recovery (DR) for F5 NGINXaaS for
4545
To get started, please review the [Terraform prerequisites]({{< ref "/nginxaas-azure/getting-started/create-deployment/deploy-terraform.md#prerequisites" >}}) for NGINXaaS for Azure.
4646
The following steps outline Terraform resources required to set up the disaster recovery topology; these resources can be placed in a `main.tf` file, variables used by these resources can go into `variables.tf`, and outputs you need to collect can be defined in `outputs.tf`. The directory structure looks as follows:
4747

48-
```bash
48+
```shell
4949
$ tree
5050
.
5151
|-- main.tf
@@ -55,7 +55,7 @@ $ tree
5555

5656
To execute the Terraform code, `cd` into the directory with these files and run:
5757

58-
```bash
58+
```shell
5959
terraform init
6060
terraform plan
6161
terraform apply --auto-approve

content/nginxaas-azure/getting-started/create-deployment/deploy-azure-cli.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The Azure CLI has an extension to be used for management of F5 NGINXaaS for Azur
1919

2020
To create an NGINXaaS for Azure resource use the `az nginx deployment create` command:
2121

22-
```bash
22+
```shell
2323
az nginx deployment create --deployment-name
2424
--resource-group
2525
[--auto-upgrade-profile]
@@ -39,7 +39,7 @@ az nginx deployment create --deployment-name
3939

4040
- Create a deployment with public IP:
4141

42-
```bash
42+
```shell
4343
az nginx deployment create --name myDeployment --resource-group \
4444
myResourceGroup --location eastus2 --sku name="standardv2_Monthly" \
4545
--network-profile front-end-ip-configuration="{public-ip-addresses:[{id:/subscriptions/mySubscriptionID/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIP}]}" \
@@ -48,15 +48,15 @@ az nginx deployment create --deployment-name
4848

4949
- Create a deployment with private IP:
5050

51-
```bash
51+
```shell
5252
az nginx deployment create --name myDeployment --resource-group \
5353
myResourceGroup --location eastus2 --sku \
5454
name="standardv2_Monthly" --network-profile \
5555
front-end-ip-configuration="{private-ip-addresses:[{private-ip-allocation-method:Static,subnet-id:/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet,private-ip-address:10.0.0.2}]}" \
5656
network-interface-configuration="{subnet-id:/subscriptions/mySubscriptionID/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet}"
5757
```
5858

59-
```bash
59+
```shell
6060
az nginx deployment create --name myDeployment --resource-group \
6161
myResourceGroup --location eastus2 --sku \
6262
name="standardv2_Monthly" --network-profile \
@@ -66,7 +66,7 @@ az nginx deployment create --deployment-name
6666

6767
- Create a dual-stack (IPv4 + IPv6) NGINXaaS deployment with public IPs:
6868

69-
```bash
69+
```shell
7070
az nginx deployment create --name myDeployment --resource-group \
7171
myResourceGroup --location eastus2 --sku name="standardv2_Monthly" \
7272
--network-profile front-end-ip-configuration="{public-ip-addresses:[{id:/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/pubIPv4},{id:/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/pubIPv6}]}" \
@@ -75,7 +75,7 @@ az nginx deployment create --deployment-name
7575

7676
- Create a dual-stack (IPv4 + IPv6) NGINXaaS deployment with private IPs:
7777

78-
```bash
78+
```shell
7979
az nginx deployment create --name myDeployment --resource-group \
8080
myResourceGroup --location eastus2 --sku \
8181
name="standardv2_Monthly" --network-profile \
@@ -85,7 +85,7 @@ az nginx deployment create --deployment-name
8585

8686
- Create a deployment with managed identity, storage account and scaling:
8787

88-
```bash
88+
```shell
8989
az nginx deployment create --deployment-name myDeployment --resource-group \
9090
myResourceGroup --location eastus2 --sku name=standardv2_Monthly \
9191
--network-profile \
@@ -102,7 +102,7 @@ See the [Azure CLI Deployment Create Documentation](https://learn.microsoft.com/
102102

103103
To update an NGINXaaS for Azure resource use the `az nginx deployment update` command:
104104

105-
```bash
105+
```shell
106106
az nginx deployment update [--add]
107107
[--auto-upgrade-profile]
108108
[--deployment-name]
@@ -128,15 +128,15 @@ az nginx deployment update [--add]
128128

129129
- Update tags and enable diagnostics support for a deployment:
130130

131-
```bash
131+
```shell
132132
az nginx deployment update --name myDeployment --resource-group \
133133
myResourceGroup --location eastus2 --tags tag1="value1" \
134134
tag2="value2" --enable-diagnostics
135135
```
136136

137137
Update an NGINXaaS deployment to a dual-stack (IPv4 + IPv6) network configuration with public IPs:
138138

139-
```bash
139+
```shell
140140
az nginx deployment update --name myDeployment --resource-group myResourceGroup \
141141
--network-profile front-end-ip-configuration="{public-ip-addresses:[{id:/subscriptions/mySubscriptionID/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/pubIPv4},{id:/subscriptions/mySubscriptionID/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/pubIPv6}]}" \
142142
network-interface-configuration="{subnet-id:/subscriptions/mySubscriptionID/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet}"
@@ -149,7 +149,7 @@ See the [Azure CLI Deployment Update Documentation](https://learn.microsoft.com/
149149

150150
Use the `az nginx deployment delete` command to delete an NGINXaaS for Azure resource:
151151

152-
```bash
152+
```shell
153153
az nginx deployment delete [--name]
154154
[--ids]
155155
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
@@ -162,7 +162,7 @@ az nginx deployment delete [--name]
162162

163163
- Delete a deployment:
164164

165-
```bash
165+
```shell
166166
az nginx deployment delete --name myDeployment \
167167
--resource-group myResourceGroup
168168
```

content/nginxaas-azure/getting-started/create-deployment/deploy-terraform.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can find examples of Terraform configurations in the [NGINXaaS for Azure Sni
2121

2222
To create a deployment, use the following Terraform commands:
2323

24-
```bash
24+
```shell
2525
terraform init
2626
terraform plan
2727
terraform apply --auto-approve
@@ -31,7 +31,7 @@ To create a deployment, use the following Terraform commands:
3131

3232
Once the deployment is no longer needed, run the following to clean up the deployment and related resources:
3333

34-
```bash
34+
```shell
3535
terraform destroy --auto-approve
3636
```
3737

content/nginxaas-azure/getting-started/migrate-from-standard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ terraform {
4747

4848
Run the below command to update your NGINXaaS deployment.
4949

50-
```bash
50+
```shell
5151
az nginx deployment update --name myDeployment --resource-group \
5252
myResourceGroup --sku name="standardv2_Monthly_gmz7xq9ge3py"
5353
```

content/nginxaas-azure/getting-started/nginx-configuration/nginx-configuration-azure-cli.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ F5 NGINXaaS for Azure (NGINXaaS) configurations can be managed using the Azure C
2323

2424
To create a new NGINX configuration, use the `az nginx deployment configuration create` command:
2525

26-
```bash
26+
```shell
2727
az nginx deployment configuration create --configuration-name
2828
--deployment-name
2929
--resource-group
@@ -39,7 +39,7 @@ az nginx deployment configuration create --configuration-name
3939

4040
You can use the `analyze` command to validate your configuration before submitting it to the deployment:
4141

42-
```bash
42+
```shell
4343
az nginx deployment configuration analyze --deployment-name $DEPLOYMENT_NAME \
4444
--resource-group $RESOURCE_GROUP --root-file /etc/nginx/nginx.conf \
4545
--name default --files "$FILES_CONTENT"
@@ -49,7 +49,7 @@ az nginx deployment configuration analyze --deployment-name $DEPLOYMENT_NAME \
4949

5050
- Create a single file configuration:
5151

52-
```bash
52+
```shell
5353
az nginx deployment configuration create --name default \
5454
--deployment-name myDeployment --resource-group myResourceGroup \
5555
--root-file /etc/nginx/nginx.conf \
@@ -70,7 +70,7 @@ az nginx deployment configuration analyze --deployment-name $DEPLOYMENT_NAME \
7070

7171
- Create a multiple file configuration:
7272

73-
```bash
73+
```shell
7474
az nginx deployment configuration create --name default \
7575
--deployment-name myDeployment --resource-group myResourceGroup \
7676
--root-file /etc/nginx/nginx.conf \
@@ -92,7 +92,7 @@ az nginx deployment configuration analyze --deployment-name $DEPLOYMENT_NAME \
9292

9393
- Upload package with config files:
9494

95-
```bash
95+
```shell
9696
$ tar -czf nginx.tar.gz nginx
9797
$ tar -tzf nginx.tar.gz
9898
nginx/
@@ -106,7 +106,7 @@ az nginx deployment configuration analyze --deployment-name $DEPLOYMENT_NAME \
106106

107107
Where `nginx` is a directory with the following structure:
108108

109-
```bash
109+
```shell
110110
$ tree nginx
111111
nginx
112112
├── nginx.conf
@@ -120,7 +120,7 @@ az nginx deployment configuration analyze --deployment-name $DEPLOYMENT_NAME \
120120

121121
Encode your tar.gz file and create your NGINXaaS configuration
122122

123-
```bash
123+
```shell
124124
TAR_DATA=$(base64 -i nginx.tar.gz)
125125
az nginx deployment configuration create --deployment-name myDeployment \
126126
--resource-group myResourceGroup --root-file nginx.conf --name default \
@@ -129,7 +129,7 @@ az nginx deployment configuration analyze --deployment-name $DEPLOYMENT_NAME \
129129

130130
- Multiple file configuration with protected files:
131131

132-
```bash
132+
```shell
133133
az nginx deployment configuration create --name default \
134134
--deployment-name 0102242023test --resource-group azclitest-geo \
135135
--root-file /etc/nginx/nginx.conf \
@@ -173,7 +173,7 @@ Update a configuration for a deployment using a gzipped archive.
173173

174174
Use the `az nginx deployment configuration update` command to update an existing NGINX configuration:
175175

176-
```bash
176+
```shell
177177
az nginx deployment configuration update [--add]
178178
[--configuration-name]
179179
[--deployment-name]
@@ -193,7 +193,7 @@ az nginx deployment configuration update [--add]
193193

194194
- Update content of the first file in a configuration:
195195

196-
```bash
196+
```shell
197197
az nginx deployment configuration update --name default \
198198
--deployment-name myDeployment --resource-group myResourceGroup \
199199
--files [0].content="aHR0cCB7CiAgICB1cHN0cmVhbSBhcHAgewogICAgICAgIHpvbmUg \

content/nginxaas-azure/getting-started/nginx-configuration/nginx-configuration-portal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The editing experience consists of a single view for both editing and validation
6969

7070
Given the example gzipped archive,
7171

72-
```bash
72+
```shell
7373
$ tar -czf nginx.tar.gz nginx
7474
$ tar -tzf nginx.tar.gz
7575
nginx/
@@ -83,7 +83,7 @@ nginx/servers/server2.conf
8383

8484
where `nginx` is a directory with the following structure,
8585

86-
```bash
86+
```shell
8787
$ tree nginx
8888
nginx
8989
├── nginx.conf

content/nginxaas-azure/getting-started/nginx-configuration/nginx-configurations-terraform.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can find examples of Terraform configurations in the [NGINXaaS for Azure Sni
2121

2222
To create a deployment and add a configuration, run the following commands:
2323

24-
```bash
24+
```shell
2525
terraform init
2626
terraform plan
2727
terraform apply --auto-approve
@@ -31,7 +31,7 @@ To create a deployment and add a configuration, run the following commands:
3131

3232
NGINX configuration files are uploaded and returned as base64 encoded data. We recommend using git or other version control systems to view human-readable differences between configuration files during `terraform plan`. Alternatively, you can decode the file contents to view the whole file. For example,
3333

34-
```bash
34+
```shell
3535
$ terraform plan
3636
...
3737
- config_file {
@@ -60,7 +60,7 @@ http {
6060

6161
Once the deployment is no longer needed, run the following to clean up the deployment and related resources:
6262

63-
```bash
63+
```shell
6464
terraform destroy --auto-approve
6565
```
6666

0 commit comments

Comments
 (0)