Skip to content

Commit abeda60

Browse files
authored
Merge pull request #178793 from MikeRayMSFT/20211104-reference-docs
Update reference content for November release
2 parents 6d44da7 + f91ffb5 commit abeda60

17 files changed

+354
-1099
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5693,6 +5693,11 @@
56935693
"redirect_url": "/azure/azure-arc/data/release-notes",
56945694
"redirect_document_id": false
56955695
},
5696+
{
5697+
"source_path_from_root": "/articles/azure-arc/data/reference/overview.md",
5698+
"redirect_url": "/azure/azure-arc/data/reference/reference-az-arcdata",
5699+
"redirect_document_id": false
5700+
},
56965701
{
56975702
"source_path_from_root": "/articles/azure-arc/data/create-data-controller-using-k8s-native-tools.md",
56985703
"redirect_url": "/azure/azure-arc/data/create-data-controller-using-kubernetes-native-tools",

articles/azure-arc/data/reference/overview.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

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

Lines changed: 20 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Reference article for az arcdata dc config commands.
55
author: MikeRayMSFT
66
ms.author: mikeray
77
ms.reviewer: seanw
8-
ms.date: 07/30/2021
8+
ms.date: 11/04/2021
99
ms.topic: reference
1010
ms.service: azure-arc
1111
ms.subservice: azure-arc-data
@@ -24,10 +24,7 @@ ms.subservice: azure-arc-data
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.
2626
```bash
27-
az arcdata dc config init [--path -p]
28-
[--source -s]
29-
30-
[--force -f]
27+
az arcdata dc config init
3128
```
3229
### Examples
3330
Guided data controller config init experience - you will receive prompts for needed values.
@@ -38,31 +35,21 @@ arcdata dc config init with arguments, creates a configuration profile of aks-de
3835
```bash
3936
az arcdata dc config init --source azure-arc-kubeadm --path custom
4037
```
41-
### Optional Parameters
42-
#### `--path -p`
43-
File path of where you would like the config profile placed, defaults to \<cwd\>/custom.
44-
#### `--source -s`
45-
Config profile source: ['azure-arc-gke', 'azure-arc-eks', 'azure-arc-kubeadm', 'azure-arc-aks-default-storage', 'azure-arc-azure-openshift', 'azure-arc-ake', 'azure-arc-openshift', 'azure-arc-aks-dev-test', 'azure-arc-aks-hci', 'azure-arc-kubeadm-dev-test', 'azure-arc-aks-premium-storage']
46-
#### `--force -f`
47-
Force overwrite of the target file.
4838
### Global Arguments
4939
#### `--debug`
5040
Increase logging verbosity to show all debug logs.
5141
#### `--help -h`
5242
Show this help message and exit.
5343
#### `--output -o`
54-
Output format. Allowed values: json, jsonc, none, table, tsv, yaml, yamlc. Default: json.
44+
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
5545
#### `--query -q`
56-
JMESPath query string. For more information and examples, see [http://jmespath.org](http://jmespath.org).
57-
#### `--subscription`
58-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
46+
JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more information and examples.
5947
#### `--verbose`
6048
Increase logging verbosity. Use `--debug` for full debug logs.
6149
## az arcdata dc config list
6250
List available configuration profile choices for use in `arcdata dc config init`
6351
```bash
64-
az arcdata dc config list [--config-profile -c]
65-
52+
az arcdata dc config list
6653
```
6754
### Examples
6855
Shows all available configuration profile names.
@@ -73,85 +60,63 @@ Shows json of a specific configuration profile.
7360
```bash
7461
az arcdata dc config list --config-profile aks-dev-test
7562
```
76-
### Optional Parameters
77-
#### `--config-profile -c`
78-
Default config profile: ['azure-arc-gke', 'azure-arc-eks', 'azure-arc-kubeadm', 'azure-arc-aks-default-storage', 'azure-arc-azure-openshift', 'azure-arc-ake', 'azure-arc-openshift', 'azure-arc-aks-dev-test', 'azure-arc-aks-hci', 'azure-arc-kubeadm-dev-test', 'azure-arc-aks-premium-storage']
7963
### Global Arguments
8064
#### `--debug`
8165
Increase logging verbosity to show all debug logs.
8266
#### `--help -h`
8367
Show this help message and exit.
8468
#### `--output -o`
85-
Output format. Allowed values: json, jsonc, none, table, tsv, yaml, yamlc. Default: json.
69+
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
8670
#### `--query -q`
87-
JMESPath query string. For more information and examples, see [http://jmespath.org](http://jmespath.org).
88-
#### `--subscription`
89-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
71+
JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more information and examples.
9072
#### `--verbose`
9173
Increase logging verbosity. Use `--debug` for full debug logs.
9274
## az arcdata dc config add
9375
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.
9476
```bash
95-
az arcdata dc config add --path -p
96-
--json-values -j
77+
az arcdata dc config add
9778
```
9879
### Examples
9980
Add data controller storage.
10081
```bash
10182
az arcdata dc config add --path custom/control.json --json-values "spec.storage={"accessMode":"ReadWriteOnce","className":"managed-premium","size":"10Gi"}"
10283
```
103-
### Required Parameters
104-
#### `--path -p`
105-
Data controller config file path of the config you would like to set, for example `custom/control.json`.
106-
#### `--json-values -j`
107-
A key value pair list of json paths to values: key1.subkey1=value1,key2.subkey2=value2. You may provide inline json values such as: key='{"kind":"cluster","name":"test-cluster"}' or provide a file path, such as key=./values.json. The add command does NOT support conditionals. If the inline value you are providing is a key value pair itself with "=" and "," escape those characters. For example, key1="key2\=val2\,key3\=val3". See [http://jsonpatch.com/](http://jsonpatch.com/) for examples of how your path should look. If you would like to access an array, you must do so by indicating the index, such as key.0=value
10884
### Global Arguments
10985
#### `--debug`
11086
Increase logging verbosity to show all debug logs.
11187
#### `--help -h`
11288
Show this help message and exit.
11389
#### `--output -o`
114-
Output format. Allowed values: json, jsonc, none, table, tsv, yaml, yamlc. Default: json.
90+
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
11591
#### `--query -q`
116-
JMESPath query string. For more information and examples, see [http://jmespath.org](http://jmespath.org).
117-
#### `--subscription`
118-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
92+
JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more information and examples.
11993
#### `--verbose`
12094
Increase logging verbosity. Use `--debug` for full debug logs.
12195
## az arcdata dc config remove
12296
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.
12397
```bash
124-
az arcdata dc config remove --path -p
125-
--json-path -j
98+
az arcdata dc config remove
12699
```
127100
### Examples
128101
Ex 1 - Remove data controller storage.
129102
```bash
130103
az arcdata dc config remove --path custom/control.json --json-path ".spec.storage"
131104
```
132-
### Required Parameters
133-
#### `--path -p`
134-
Data controller config file path of the config you would like to set, for example `custom/control.json`
135-
#### `--json-path -j`
136-
A list of json paths based on the jsonpatch library that indicates which values you would like removed, such as: `key1.subkey1,key2.subkey2`. The remove command does NOT support conditionals. See [http://jsonpatch.com/](http://jsonpatch.com/) for examples of how your path should look. If you would like to access an array, you must do so by indicating the index, such as key.0=value
137105
### Global Arguments
138106
#### `--debug`
139107
Increase logging verbosity to show all debug logs.
140108
#### `--help -h`
141109
Show this help message and exit.
142110
#### `--output -o`
143-
Output format. Allowed values: json, jsonc, none, table, tsv, yaml, yamlc. Default: json.
111+
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
144112
#### `--query -q`
145-
JMESPath query string. For more information and examples, see [http://jmespath.org](http://jmespath.org).
146-
#### `--subscription`
147-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
113+
JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more information and examples.
148114
#### `--verbose`
149115
Increase logging verbosity. Use `--debug` for full debug logs.
150116
## az arcdata dc config replace
151-
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.
117+
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.
152118
```bash
153-
az arcdata dc config replace --path -p
154-
--json-values -j
119+
az arcdata dc config replace
155120
```
156121
### Examples
157122
Ex 1 - Replace the port of a single endpoint (Data Controller Endpoint).
@@ -162,29 +127,21 @@ Ex 2 - Replace data controller storage.
162127
```bash
163128
az arcdata dc config replace --path custom/control.json --json-values "spec.storage={"accessMode":"ReadWriteOnce","className":"managed-premium","size":"10Gi"}"
164129
```
165-
### Required Parameters
166-
#### `--path -p`
167-
Data controller config file path of the config you would like to set, for example `custom/control.json`.
168-
#### `--json-values -j`
169-
A key value pair list of json paths to values: key1.subkey1=value1,key2.subkey2=value2. You may provide inline json values such as: key='{"kind":"cluster","name":"test-cluster"}' or provide a file path, such as key=./values.json. The replace command supports conditionals through the jsonpath library. To use this, start your path with a $. This will allow you to do a conditional such as -j $.key1.key2[?(@.key3=="someValue"].key4=value. If the inline value you are providing is a key value pair itself with "=" and "," escape those characters. For example, `key1="key2\=val2\,key3\=val3"`. You may see examples below. For additional help, See: https://jsonpath.com/
170130
### Global Arguments
171131
#### `--debug`
172132
Increase logging verbosity to show all debug logs.
173133
#### `--help -h`
174134
Show this help message and exit.
175135
#### `--output -o`
176-
Output format. Allowed values: json, jsonc, none, table, tsv, yaml, yamlc. Default: json.
136+
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
177137
#### `--query -q`
178-
JMESPath query string. For more information and examples, see [http://jmespath.org](http://jmespath.org).
179-
#### `--subscription`
180-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
138+
JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more information and examples.
181139
#### `--verbose`
182140
Increase logging verbosity. Use `--debug` for full debug logs.
183141
## az arcdata dc config patch
184142
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.
185143
```bash
186-
az arcdata dc config patch --path
187-
--patch-file -p
144+
az arcdata dc config patch
188145
```
189146
### Examples
190147
Ex 1 - Replace the port of a single endpoint (Data Controller Endpoint) with patch file.
@@ -201,21 +158,14 @@ az arcdata dc config patch --path custom/control.json --patch ./patch.json
201158
Patch File Example (patch.json):
202159
{"patch":[{"op":"replace","path":".spec.storage","value":{"accessMode":"ReadWriteMany","className":"managed-premium","size":"10Gi"}}]}
203160
```
204-
### Required Parameters
205-
#### `--path`
206-
Data controller config file path of the config you would like to set, for example `custom/control.json`.
207-
#### `--patch-file -p`
208-
Path to a patch json file that is based off the jsonpatch library: http://jsonpatch.com/. You must start your patch json file with a key called "patch", whose value is an array of patch operations you intend to make. For the path of a patch operation, you may use dot notation, such as key1.key2 for most operations. If you would like to do a replace operation, and you are replacing a value in an array that requires a conditional, please use the jsonpath notation by beginning your path with a $. This will allow you to do a conditional such as $.key1.key2[?(@.key3=="someValue"].key4. See the examples below. For additional help with conditionals, See: https://jsonpath.com/.
209161
### Global Arguments
210162
#### `--debug`
211163
Increase logging verbosity to show all debug logs.
212164
#### `--help -h`
213165
Show this help message and exit.
214166
#### `--output -o`
215-
Output format. Allowed values: json, jsonc, none, table, tsv, yaml, yamlc. Default: json.
167+
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
216168
#### `--query -q`
217-
JMESPath query string. For more information and examples, see [http://jmespath.org](http://jmespath.org).
218-
#### `--subscription`
219-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
169+
JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more information and examples.
220170
#### `--verbose`
221171
Increase logging verbosity. Use `--debug` for full debug logs.

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

Lines changed: 9 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Reference article for az arcdata dc debug commands.
55
author: MikeRayMSFT
66
ms.author: mikeray
77
ms.reviewer: seanw
8-
ms.date: 07/30/2021
8+
ms.date: 11/04/2021
99
ms.topic: reference
1010
ms.service: azure-arc
1111
ms.subservice: azure-arc-data
@@ -20,96 +20,32 @@ ms.subservice: azure-arc-data
2020
## az arcdata dc debug copy-logs
2121
Copy the debug logs from the data controller - Kubernetes configuration is required on your system.
2222
```bash
23-
az arcdata dc debug copy-logs --k8s-namespace -k
24-
[--container -c]
25-
26-
[--target-folder -d]
27-
28-
[--pod]
29-
30-
[--resource-kind]
31-
32-
[--resource-name]
33-
34-
[--timeout -t]
35-
36-
[--skip-compress]
37-
38-
[--exclude-dumps]
39-
40-
[--exclude-system-logs ]
41-
42-
[--use-k8s]
23+
az arcdata dc debug copy-logs
4324
```
44-
### Required Parameters
45-
#### `--k8s-namespace -k`
46-
Kubernetes namespace of the data controller.
47-
### Optional Parameters
48-
#### `--container -c`
49-
Copy the logs for the containers with similar name, Optional, by default copies logs for all containers. Cannot be specified multiple times. If specified multiple times, last one will be used
50-
#### `--target-folder -d`
51-
Target folder path to copy logs to. Optional, by default creates the result in the local folder. Cannot be specified multiple times. If specified multiple times, last one will be used
52-
#### `--pod`
53-
Copy the logs for the pods with similar name. Optional, by default copies logs for all pods. Cannot be specified multiple times. If specified multiple times, last one will be used
54-
#### `--resource-kind`
55-
Copy the logs for the resource of a particular kind. Cannot specified multiple times. If specified multiple times, last one will be used. If specified, --resource-name should also be specified to identify the resource.
56-
#### `--resource-name`
57-
Copy the logs for the resource of the specified name. Cannot be specified multiple times. If specified multiple times, last one will be used. If specified, --resource-kind should also be specified to identify the resource.
58-
#### `--timeout -t`
59-
The number of seconds to wait for the command to complete. The default value is 0 which is unlimited
60-
#### `--skip-compress`
61-
Whether or not to skip compressing the result folder. The default value is False which compresses the result folder.
62-
#### `--exclude-dumps`
63-
Whether or not to exclude dumps from result folder. The default value is False which includes dumps.
64-
#### `--exclude-system-logs `
65-
Whether or not to exclude system logs from collection. The default value is False which includes system logs.
66-
#### `--use-k8s`
67-
Use local Kubernetes APIs to perform this action.
6825
### Global Arguments
6926
#### `--debug`
7027
Increase logging verbosity to show all debug logs.
7128
#### `--help -h`
7229
Show this help message and exit.
7330
#### `--output -o`
74-
Output format. Allowed values: json, jsonc, none, table, tsv, yaml, yamlc. Default: json.
31+
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
7532
#### `--query -q`
76-
JMESPath query string. See [http://jmespath.org](http://jmespath.org) for more information and examples.
77-
#### `--subscription`
78-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
33+
JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more information and examples.
7934
#### `--verbose`
80-
Increase logging verbosity. Use --debug for full debug logs.
35+
Increase logging verbosity. Use `--debug` for full debug logs.
8136
## az arcdata dc debug dump
8237
Trigger memory dump and copy it out from container - Kubernetes configuration is required on your system.
8338
```bash
84-
az arcdata dc debug dump --k8s-namespace -k
85-
[--container -c]
86-
87-
[--target-folder -d]
88-
89-
[--use-k8s]
39+
az arcdata dc debug dump
9040
```
91-
### Required Parameters
92-
#### `--k8s-namespace -k`
93-
Kubernetes namespace of the data controller.
94-
### Optional Parameters
95-
#### `--container -c`
96-
The target container to be triggered for dumping the running processes.
97-
`controller`
98-
#### `--target-folder -d`
99-
Target folder to copy the dump out.
100-
`./output/dump`
101-
#### `--use-k8s`
102-
Use local Kubernetes APIs to perform this action.
10341
### Global Arguments
10442
#### `--debug`
10543
Increase logging verbosity to show all debug logs.
10644
#### `--help -h`
10745
Show this help message and exit.
10846
#### `--output -o`
109-
Output format. Allowed values: json, jsonc, none, table, tsv, yaml, yamlc. Default: json.
47+
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
11048
#### `--query -q`
111-
JMESPath query string. See [http://jmespath.org](http://jmespath.org) for more information and examples.
112-
#### `--subscription`
113-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
49+
JMESPath query string. See [http://jmespath.org/](http://jmespath.org) for more information and examples.
11450
#### `--verbose`
115-
Increase logging verbosity. Use --debug for full debug logs.
51+
Increase logging verbosity. Use `--debug` for full debug logs.

0 commit comments

Comments
 (0)