You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-arc/data/reference/reference-az-arcdata-dc-config.md
+20-70Lines changed: 20 additions & 70 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Reference article for az arcdata dc config commands.
5
5
author: MikeRayMSFT
6
6
ms.author: mikeray
7
7
ms.reviewer: seanw
8
-
ms.date: 07/30/2021
8
+
ms.date: 11/04/2021
9
9
ms.topic: reference
10
10
ms.service: azure-arc
11
11
ms.subservice: azure-arc-data
@@ -24,10 +24,7 @@ ms.subservice: azure-arc-data
24
24
## az arcdata dc config init
25
25
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
26
```bash
27
-
az arcdata dc config init [--path -p]
28
-
[--source -s]
29
-
30
-
[--force -f]
27
+
az arcdata dc config init
31
28
```
32
29
### Examples
33
30
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
38
35
```bash
39
36
az arcdata dc config init --source azure-arc-kubeadm --path custom
40
37
```
41
-
### Optional Parameters
42
-
#### `--path -p`
43
-
File path of where you would like the config profile placed, defaults to \<cwd\>/custom.
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.
90
72
#### `--verbose`
91
73
Increase logging verbosity. Use `--debug` for full debug logs.
92
74
## az arcdata dc config add
93
75
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.
94
76
```bash
95
-
az arcdata dc config add --path -p
96
-
--json-values -j
77
+
az arcdata dc config add
97
78
```
98
79
### Examples
99
80
Add data controller storage.
100
81
```bash
101
82
az arcdata dc config add --path custom/control.json --json-values "spec.storage={"accessMode":"ReadWriteOnce","className":"managed-premium","size":"10Gi"}"
102
83
```
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
108
84
### Global Arguments
109
85
#### `--debug`
110
86
Increase logging verbosity to show all debug logs.
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.
119
93
#### `--verbose`
120
94
Increase logging verbosity. Use `--debug` for full debug logs.
121
95
## az arcdata dc config remove
122
96
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.
123
97
```bash
124
-
az arcdata dc config remove --path -p
125
-
--json-path -j
98
+
az arcdata dc config remove
126
99
```
127
100
### Examples
128
101
Ex 1 - Remove data controller storage.
129
102
```bash
130
103
az arcdata dc config remove --path custom/control.json --json-path ".spec.storage"
131
104
```
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
137
105
### Global Arguments
138
106
#### `--debug`
139
107
Increase logging verbosity to show all debug logs.
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.
148
114
#### `--verbose`
149
115
Increase logging verbosity. Use `--debug` for full debug logs.
150
116
## 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.
152
118
```bash
153
-
az arcdata dc config replace --path -p
154
-
--json-values -j
119
+
az arcdata dc config replace
155
120
```
156
121
### Examples
157
122
Ex 1 - Replace the port of a single endpoint (Data Controller Endpoint).
@@ -162,29 +127,21 @@ Ex 2 - Replace data controller storage.
162
127
```bash
163
128
az arcdata dc config replace --path custom/control.json --json-values "spec.storage={"accessMode":"ReadWriteOnce","className":"managed-premium","size":"10Gi"}"
164
129
```
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/
170
130
### Global Arguments
171
131
#### `--debug`
172
132
Increase logging verbosity to show all debug logs.
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.
181
139
#### `--verbose`
182
140
Increase logging verbosity. Use `--debug` for full debug logs.
183
141
## az arcdata dc config patch
184
142
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.
185
143
```bash
186
-
az arcdata dc config patch --path
187
-
--patch-file -p
144
+
az arcdata dc config patch
188
145
```
189
146
### Examples
190
147
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
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/.
209
161
### Global Arguments
210
162
#### `--debug`
211
163
Increase logging verbosity to show all debug logs.
Copy file name to clipboardExpand all lines: articles/azure-arc/data/reference/reference-az-arcdata-dc-debug.md
+9-73Lines changed: 9 additions & 73 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Reference article for az arcdata dc debug commands.
5
5
author: MikeRayMSFT
6
6
ms.author: mikeray
7
7
ms.reviewer: seanw
8
-
ms.date: 07/30/2021
8
+
ms.date: 11/04/2021
9
9
ms.topic: reference
10
10
ms.service: azure-arc
11
11
ms.subservice: azure-arc-data
@@ -20,96 +20,32 @@ ms.subservice: azure-arc-data
20
20
## az arcdata dc debug copy-logs
21
21
Copy the debug logs from the data controller - Kubernetes configuration is required on your system.
22
22
```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
43
24
```
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.
68
25
### Global Arguments
69
26
#### `--debug`
70
27
Increase logging verbosity to show all debug logs.
0 commit comments