Skip to content

Commit 3efe47b

Browse files
authored
Merge pull request #188167 from dksimpson/azure-docs-pr-20220126-validation-4
Validation bulk update: Fix code tags for Azure CLI code blocks - batch 3
2 parents 195835c + bfede7a commit 3efe47b

13 files changed

+111
-107
lines changed

articles/azure-arc/data/reference/reference-az-arcdata-dc-config.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ ms.subservice: azure-arc-data
2323
[az arcdata dc config patch](#az-arcdata-dc-config-patch) | Patch a config file based on a json patch file.
2424
## az arcdata dc config init
2525
Initialize a data controller configuration profile that can be used with `az arcdata dc create`. The specific source of the configuration profile can be specified in the arguments.
26-
```bash
26+
```azurecli
2727
az arcdata dc config init
2828
```
2929
### Examples
3030
Guided data controller config init experience - you will receive prompts for needed values.
31-
```bash
31+
```azurecli
3232
az arcdata dc config init
3333
```
3434
arcdata dc config init with arguments, creates a configuration profile of aks-dev-test in ./custom.
35-
```bash
35+
```azurecli
3636
az arcdata dc config init --source azure-arc-kubeadm --path custom
3737
```
3838
### Global Arguments
@@ -48,16 +48,16 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
4848
Increase logging verbosity. Use `--debug` for full debug logs.
4949
## az arcdata dc config list
5050
List available configuration profile choices for use in `arcdata dc config init`
51-
```bash
51+
```azurecli
5252
az arcdata dc config list
5353
```
5454
### Examples
5555
Shows all available configuration profile names.
56-
```bash
56+
```azurecli
5757
az arcdata dc config list
5858
```
5959
Shows json of a specific configuration profile.
60-
```bash
60+
```azurecli
6161
az arcdata dc config list --config-profile aks-dev-test
6262
```
6363
### Global Arguments
@@ -73,12 +73,12 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
7373
Increase logging verbosity. Use `--debug` for full debug logs.
7474
## az arcdata dc config add
7575
Add the value at the json path in the config file. All examples below are given in Bash. If using another command line, you may need to escape quotations appropriately. Alternatively, you may use the patch file functionality.
76-
```bash
76+
```azurecli
7777
az arcdata dc config add
7878
```
7979
### Examples
8080
Add data controller storage.
81-
```bash
81+
```azurecli
8282
az arcdata dc config add --path custom/control.json --json-values "spec.storage={"accessMode":"ReadWriteOnce","className":"managed-premium","size":"10Gi"}"
8383
```
8484
### Global Arguments
@@ -94,12 +94,12 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
9494
Increase logging verbosity. Use `--debug` for full debug logs.
9595
## az arcdata dc config remove
9696
Remove the value at the json path in the config file. All examples below are given in Bash. If using another command line, you may need to escape quotations appropriately. Alternatively, you may use the patch file functionality.
97-
```bash
97+
```azurecli
9898
az arcdata dc config remove
9999
```
100100
### Examples
101101
Ex 1 - Remove data controller storage.
102-
```bash
102+
```azurecli
103103
az arcdata dc config remove --path custom/control.json --json-path ".spec.storage"
104104
```
105105
### Global Arguments
@@ -115,16 +115,16 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
115115
Increase logging verbosity. Use `--debug` for full debug logs.
116116
## az arcdata dc config replace
117117
Replace the value at the json path in the config file. All examples below are given in Bash. If using another command line, you may need to escape quotations appropriately. Alternatively, you may use the patch file functionality.
118-
```bash
118+
```azurecli
119119
az arcdata dc config replace
120120
```
121121
### Examples
122122
Ex 1 - Replace the port of a single endpoint (Data Controller Endpoint).
123-
```bash
123+
```azurecli
124124
az arcdata dc config replace --path custom/control.json --json-values "$.spec.endpoints[?(@.name=="Controller")].port=30080"
125125
```
126126
Ex 2 - Replace data controller storage.
127-
```bash
127+
```azurecli
128128
az arcdata dc config replace --path custom/control.json --json-values "spec.storage={"accessMode":"ReadWriteOnce","className":"managed-premium","size":"10Gi"}"
129129
```
130130
### Global Arguments
@@ -140,23 +140,25 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
140140
Increase logging verbosity. Use `--debug` for full debug logs.
141141
## az arcdata dc config patch
142142
Patch the config file according to the given patch file. Consult http://jsonpatch.com/ for a better understanding of how the paths should be composed. The replace operation can use conditionals in its path due to the jsonpath library https://jsonpath.com/. All patch json files must start with a key of "patch" that has an array of patches with their corresponding op (add, replace, remove), path, and value. The "remove" op does not require a value, just a path. See the examples below.
143-
```bash
143+
```azurecli
144144
az arcdata dc config patch
145145
```
146146
### Examples
147147
Ex 1 - Replace the port of a single endpoint (Data Controller Endpoint) with patch file.
148-
```bash
148+
```azurecli
149149
az arcdata dc config patch --path custom/control.json --patch ./patch.json
150-
151-
Patch File Example (patch.json):
152-
{"patch":[{"op":"replace","path":"$.spec.endpoints[?(@.name=="Controller")].port","value":30080}]}
150+
```
151+
Patch File Example (patch.json):
152+
```json
153+
{"patch":[{"op":"replace","path":"$.spec.endpoints[?(@.name=="Controller")].port","value":30080}]}
153154
```
154155
Ex 2 - Replace data controller storage with patch file.
155-
```bash
156+
```azurecli
156157
az arcdata dc config patch --path custom/control.json --patch ./patch.json
157-
158-
Patch File Example (patch.json):
159-
{"patch":[{"op":"replace","path":".spec.storage","value":{"accessMode":"ReadWriteMany","className":"managed-premium","size":"10Gi"}}]}
158+
```
159+
Patch File Example (patch.json):
160+
```json
161+
{"patch":[{"op":"replace","path":".spec.storage","value":{"accessMode":"ReadWriteMany","className":"managed-premium","size":"10Gi"}}]}
160162
```
161163
### Global Arguments
162164
#### `--debug`

articles/azure-arc/data/reference/reference-az-arcdata-dc-debug.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.subservice: azure-arc-data
1919
[az arcdata dc debug dump](#az-arcdata-dc-debug-dump) | Trigger memory dump.
2020
## az arcdata dc debug copy-logs
2121
Copy the debug logs from the data controller - Kubernetes configuration is required on your system.
22-
```bash
22+
```azurecli
2323
az arcdata dc debug copy-logs
2424
```
2525
### Global Arguments
@@ -35,7 +35,7 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
3535
Increase logging verbosity. Use `--debug` for full debug logs.
3636
## az arcdata dc debug dump
3737
Trigger memory dump and copy it out from container - Kubernetes configuration is required on your system.
38-
```bash
38+
```azurecli
3939
az arcdata dc debug dump
4040
```
4141
### Global Arguments

articles/azure-arc/data/reference/reference-az-arcdata-dc-endpoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ ms.subservice: azure-arc-data
1818
[az arcdata dc endpoint list](#az-arcdata-dc-endpoint-list) | List the data controller endpoint.
1919
## az arcdata dc endpoint list
2020
List the data controller endpoint.
21-
```bash
21+
```azurecli
2222
az arcdata dc endpoint list
2323
```
2424
### Examples
2525
Lists all available data controller endpoints.
26-
```bash
26+
```azurecli
2727
az arcdata dc endpoint list --k8s-namespace namespace
2828
```
2929
### Global Arguments

articles/azure-arc/data/reference/reference-az-arcdata-dc-status.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ ms.subservice: azure-arc-data
1818
[az arcdata dc status show](#az-arcdata-dc-status-show) | Show the status of the data controller.
1919
## az arcdata dc status show
2020
Show the status of the data controller.
21-
```bash
21+
```azurecli
2222
az arcdata dc status show
2323
```
2424
### Examples
2525
Show the status of the data controller in a particular kubernetes namespace.
26-
```bash
26+
```azurecli
2727
az arcdata dc status show --k8s-namespace namespace --use-k8s
2828
```
2929
Show the status of a directly connected data controller in a particular resource group.
30-
```bash
30+
```azurecli
3131
az arcdata dc status show --resource-group resource-group
3232
```
3333
### Global Arguments

articles/azure-arc/data/reference/reference-az-arcdata-dc.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ ms.subservice: azure-arc-data
2727
[az arcdata dc upload](#az-arcdata-dc-upload) | Upload exported data file.
2828
## az arcdata dc create
2929
Create data controller - kube config is required on your system along with credentials for the monitoring dashboards provided by the following environment variables - AZDATA_LOGSUI_USERNAME and AZDATA_LOGSUI_PASSWORD for Logs Dashboard, and AZDATA_METRICSUI_USERNAME and AZDATA_METRICSUI_PASSWORD for Metrics Dashboard. Alternatively AZDATA_USERNAME and AZDATA_PASSWORD will be used as a fallback if either sets of environment variables are missing.
30-
```bash
30+
```azurecli
3131
az arcdata dc create
3232
```
3333
### Examples
3434
Deploy an indirectly connected data controller.
35-
```bash
35+
```azurecli
3636
az arcdata dc create --name name --k8s-namespace namespace --connectivity-mode indirect --resource-group group --location location --subscription subscription --use-k8s
3737
```
3838
Deploy a directly connected data controller.
39-
```bash
39+
```azurecli
4040
az arcdata dc create --name name --connectivity-mode direct --resource-group group --location location --subscription subscription --custom-location custom-location
4141
```
4242
### Global Arguments
@@ -52,12 +52,12 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
5252
Increase logging verbosity. Use `--debug` for full debug logs.
5353
## az arcdata dc upgrade
5454
Upgrade data controller to the desired-version specified. If desired-version is not specified, an attempt to upgrade to the latest version will be made. If you are unsure of the desired version, you may use the list-upgrades command to view available versions, or use the --dry-run argument to show which version would be used
55-
```bash
55+
```azurecli
5656
az arcdata dc upgrade
5757
```
5858
### Examples
5959
Data controller upgrade.
60-
```bash
60+
```azurecli
6161
az arcdata dc upgrade --k8s-namespace namespace --use-k8s
6262
```
6363
### Global Arguments
@@ -73,12 +73,12 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
7373
Increase logging verbosity. Use `--debug` for full debug logs.
7474
## az arcdata dc list-upgrades
7575
Attempts to list versions that are available in the docker image registry for upgrade. - kube config is required on your system along with the following environment variables ['AZDATA_USERNAME', 'AZDATA_PASSWORD'].
76-
```bash
76+
```azurecli
7777
az arcdata dc list-upgrades
7878
```
7979
### Examples
8080
Data controller upgrade.
81-
```bash
81+
```azurecli
8282
az arcdata dc list-upgrades --k8s-namespace namespace --use-k8s
8383
```
8484
### Global Arguments
@@ -94,16 +94,16 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
9494
Increase logging verbosity. Use `--debug` for full debug logs.
9595
## az arcdata dc delete
9696
Delete data controller - kube config is required on your system.
97-
```bash
97+
```azurecli
9898
az arcdata dc delete
9999
```
100100
### Examples
101101
Delete an indirect connected data controller.
102-
```bash
102+
```azurecli
103103
az arcdata dc delete --name name --k8s-namespace namespace --use-k8s
104104
```
105105
Delete a directly connected data controller.
106-
```bash
106+
```azurecli
107107
az arcdata dc delete --name name --resource-group resource-group
108108
```
109109
### Global Arguments
@@ -119,7 +119,7 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
119119
Increase logging verbosity. Use `--debug` for full debug logs.
120120
## az arcdata dc export
121121
Export metrics, logs or usage to a file.
122-
```bash
122+
```azurecli
123123
az arcdata dc export
124124
```
125125
### Global Arguments
@@ -135,7 +135,7 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
135135
Increase logging verbosity. Use `--debug` for full debug logs.
136136
## az arcdata dc upload
137137
Upload data file exported from a data controller to Azure.
138-
```bash
138+
```azurecli
139139
az arcdata dc upload
140140
```
141141
### Global Arguments

articles/azure-arc/data/reference/reference-az-arcdata-resource-kind.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ ms.subservice: azure-arc-data
1919
[az arcdata resource-kind get](#az-arcdata-resource-kind-get) | Get the Arc resource-kind's template file.
2020
## az arcdata resource-kind list
2121
List the available custom resource kinds for Arc that can be defined and created. After listing, you can proceed to getting the template file needed to define or create that custom resource.
22-
```bash
22+
```azurecli
2323
az arcdata resource-kind list
2424
```
2525
### Examples
2626
Example command for listing the available custom resource kinds for Arc.
27-
```bash
27+
```azurecli
2828
az arcdata resource-kind list
2929
```
3030
### Global Arguments
@@ -40,12 +40,12 @@ JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more
4040
Increase logging verbosity. Use `--debug` for full debug logs.
4141
## az arcdata resource-kind get
4242
Get the Arc resource-kind's template file.
43-
```bash
43+
```azurecli
4444
az arcdata resource-kind get
4545
```
4646
### Examples
4747
Example command for getting an Arc resource-kind's CRD template file.
48-
```bash
48+
```azurecli
4949
az arcdata resource-kind get --kind SqlManagedInstance
5050
```
5151
### Global Arguments

articles/azure-arc/data/reference/reference-az-postgres-arc-server-endpoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ ms.subservice: azure-arc-data
1818
[az postgres arc-server endpoint list](#az-postgres-arc-server-endpoint-list) | List Azure Arc enabled PostgreSQL Hyperscale server group endpoints.
1919
## az postgres arc-server endpoint list
2020
List Azure Arc enabled PostgreSQL Hyperscale server group endpoints.
21-
```bash
21+
```azurecli
2222
az postgres arc-server endpoint list
2323
```
2424
### Examples
2525
List Azure Arc enabled PostgreSQL Hyperscale server group endpoints.
26-
```bash
26+
```azurecli
2727
az postgres arc-server endpoint list --name postgres01 --k8s-namespace namespace --use-k8s
2828
```
2929
### Global Arguments

0 commit comments

Comments
 (0)