Skip to content

Commit 40ac60e

Browse files
committed
Adding the read me file
1 parent b3378ef commit 40ac60e

16 files changed

+1078
-1153
lines changed

src/data-transfer/README.md

Lines changed: 240 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,241 @@
1-
# Azure CLI DataTransfer Extension #
2-
This is an extension to Azure CLI to manage DataTransfer resources.
1+
# Azure CLI automation Extension #
2+
This package is for the 'azure data transfer' extension, i.e. 'az data-transfer'.
33

4-
## How to use ##
5-
Please add commands usage here.
4+
### How to use ###
5+
Install this extension using the below CLI command
6+
```
7+
az extension add --name data-transfer
8+
```
9+
10+
### Included Features
11+
#### Viewing Pipelines:
12+
Manage Connection: [more info](https://learn.microsoft.com/en-us/azure/templates/microsoft.azuredatatransfer/pipelines/)\
13+
*Examples:*
14+
15+
##### Get a pipeline
16+
17+
```
18+
az data-transfer pipeline show \
19+
--resource-group groupName \
20+
--pipeline-name pipelineName
21+
22+
```
23+
##### List all pipelines in a subscription
24+
25+
```
26+
az data-transfer pipeline show --resource-group groupName
27+
28+
```
29+
30+
```
31+
az data-transfer pipeline show
32+
33+
```
34+
35+
##### Approve a connection in a pipeline
36+
37+
```
38+
az data-transfer pipeline approve-connection \
39+
--resource-group groupName \
40+
--pipeline-name pipelineName \
41+
--connection-id connectionResourceId
42+
43+
```
44+
45+
##### Reject a connection in a pipeline
46+
47+
```
48+
az data-transfer pipeline reject-connection \
49+
--resource-group groupName \
50+
--pipeline-name pipelineName \
51+
--connection-id connectionResourceId
52+
53+
```
54+
55+
#### Connection Management:
56+
Manage Connection: [more info](https://learn.microsoft.com/en-us/azure/templates/microsoft.azuredatatransfer/connections/)\
57+
*Examples:*
58+
59+
##### Create a receive side connection
60+
61+
```
62+
az data-transfer connection create \
63+
--resource-group groupName \
64+
--name connectionName \
65+
--location westus \
66+
--pipeline PipelineName \
67+
--direction Receive \
68+
--flow-types Api Data \
69+
--remote-subscription-id subscriptionId \
70+
--justification 'justification string' \
71+
--requirement-id 1234 \
72+
--primary-contact abc@microsoft.com \
73+
--secondary-contacts abc@microsoft.com
74+
75+
```
76+
##### Create a send side connection
77+
78+
```
79+
az data-transfer connection create \
80+
--resource-group groupName \
81+
--name connectionName \
82+
--location westus \
83+
--pipeline PipelineName \
84+
--direction Send \
85+
--flow-types Mission Data \
86+
--pin 123456\
87+
--primary-contact abc@microsoft.com \
88+
--secondary-contacts abc@microsoft.com
89+
90+
```
91+
92+
##### Link send and receive side connections
93+
94+
```
95+
az data-transfer connection link \
96+
--resource-group groupName \
97+
--name receiveSideConnectionName \
98+
--pending-connection-id sendSideResourceId
99+
100+
```
101+
102+
##### List connections in a resource group
103+
104+
```
105+
az data-transfer connection link \
106+
--resource-group groupName \
107+
--maxItems 10
108+
--nextToken <Link from previous response>
109+
110+
```
111+
112+
##### List pending connections that can be linked with the given connection
113+
114+
```
115+
az data-transfer connection list-pending-connection \
116+
--resource-group groupName \
117+
--name receiveSideConnectionName \
118+
--maxItems 10 \
119+
--nextToken <Link from previous response>
120+
121+
```
122+
123+
##### List pending flows in the given connection that are not linked
124+
125+
```
126+
az data-transfer connection list-pending-flow \
127+
--resource-group groupName \
128+
--connection-name receiveSideConnectionName \
129+
--maxItems 10 \
130+
--nextToken <Link from previous response>
131+
132+
```
133+
134+
##### Get the given connection
135+
136+
```
137+
az data-transfer connection show \
138+
--resource-group groupName \
139+
--connection-name connectionName
140+
141+
```
142+
143+
##### Update the given connection
144+
145+
Update of the tags is only supported.
146+
147+
```
148+
az data-transfer connection update \
149+
--resource-group groupName \
150+
--connection-name connectionName \
151+
--tags key1=update1
152+
153+
```
154+
155+
#### Flow Management:
156+
Manage Flow: [more info](https://learn.microsoft.com/en-us/azure/templates/microsoft.azuredatatransfer/connections/flows/)\
157+
*Examples:*
158+
159+
##### List flows in the given connection.
160+
161+
```
162+
az data-transfer connection list-pending-flow \
163+
--resource-group groupName \
164+
--connection-name receiveSideConnectionName \
165+
--maxItems 10 \
166+
--nextToken <Link from previous response>
167+
168+
```
169+
170+
##### Create a flow
171+
172+
```
173+
174+
az data-transfer connection flow create \
175+
--resource-group resourceGroupname \
176+
--connection-name connectionName \
177+
--name flowName \
178+
--flow-type "Mission" \
179+
--location eastus \
180+
--status "Enabled" \
181+
--storage-account strorageAccountResourceId \
182+
--storage-container-name testContainer \
183+
--data-type "Blob"
184+
185+
```
186+
187+
##### Link send and receive side flows
188+
189+
```
190+
az data-transfer connection link \
191+
--resource-group groupName \
192+
--connection-name receiveSideConnectionName \
193+
--name receiveSideFlowName \
194+
--pending-flow-id sendSideFlowResourceId
195+
196+
```
197+
198+
##### Get the given flow
199+
200+
```
201+
az data-transfer connection flow show \
202+
--resource-group groupName \
203+
--connection-name connectionName \
204+
--name flowName
205+
206+
```
207+
208+
##### Enable the given flow
209+
210+
```
211+
az data-transfer connection flow enable \
212+
--resource-group groupName \
213+
--connection-name connectionName \
214+
--name flowName
215+
216+
```
217+
218+
##### Disable the given flow
219+
220+
```
221+
az data-transfer connection flow disable \
222+
--resource-group groupName \
223+
--connection-name connectionName \
224+
--name flowName
225+
226+
```
227+
228+
##### Update the given flow
229+
230+
Update of the tags is only supported.
231+
232+
```
233+
az data-transfer connection flow update \
234+
--resource-group groupName \
235+
--connection-name connectionName \
236+
--flow-name flowName \
237+
--tags key1=update1
238+
239+
```
240+
241+
If you have issues, please give feedback by opening an issue at https://github.com/Azure/azure-cli-extensions/issues.

src/data-transfer/azext_data_transfer/aaz/latest/data_transfer/__cmd_group.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
@register_command_group(
1515
"data-transfer",
16+
is_preview=True,
1617
)
1718
class __CMDGroup(AAZCommandGroup):
1819
"""Data transfer commands

src/data-transfer/azext_data_transfer/aaz/latest/data_transfer/connection/__cmd_group.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
@register_command_group(
1515
"data-transfer connection",
16+
is_preview=True,
1617
)
1718
class __CMDGroup(AAZCommandGroup):
1819
"""Data transfer connection commands

src/data-transfer/azext_data_transfer/aaz/latest/data_transfer/connection/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from ._list import *
1616
from ._list_pending_connection import *
1717
from ._list_pending_flow import *
18-
from ._list_untitled1 import *
1918
from ._show import *
2019
from ._update import *
2120
from ._wait import *

0 commit comments

Comments
 (0)