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/migrate/how-to-create-group-machine-dependencies-agentless.md
+154-3Lines changed: 154 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ This article describes how to set up agentless dependency analysis using Azure M
29
29
::: moniker-end
30
30
31
31
::: moniker range="migrate"
32
+
32
33
## What's New?
33
34
34
35
- Dependency analysis is automatically enabled on 1,000 servers discovered by each Azure Migrate appliance that has passed the prerequisite checks. You no longer need to enable the dependency analysis on servers manually as before.
@@ -110,6 +111,9 @@ After the validation succeeds, dependency analysis are auto-enabled and you see
110
111
::: moniker range="migrate"
111
112
5.**Not initiated:** when dependency analysis couldn't be enabled as Azure Migrate has reached the scale limit of 1,000 servers per appliance for auto-enablement. If you want to perform dependency analysis on the specific servers, you can manually disable it on the other auto-enabled servers and enable for the ones you need by using the PowerShell module.
112
113
6.**Disabled:** when dependency analysis has been manually disabled by you on this server using the PowerShell module. You can re-enable it any-time using the same PowerShell module.
114
+
115
+
>[!Note]
116
+
> **Not supported** is the status shown for servers discovered through CSV import, as the CSV file currently does not collect network dependency data.
113
117
::: moniker-end
114
118
115
119
## Visualize dependencies
@@ -179,9 +183,9 @@ After the validation succeeds, dependency analysis are auto-enabled and you see
179
183
180
184
## Export dependency data
181
185
182
-
1. In **All inventory** or **Infrastructure inventory** view, select the **Dependency analysis** drop-down.
183
-
2. Select **Export application dependencies**.
184
-
3. In the **Export application dependencies** page, choose the appliance name that is discovering the desired servers.
186
+
1. In **All inventory** or **Infrastructure inventory** view, select the **Manage Dependencies** drop-down.
187
+
2. Select **Export dependencies**.
188
+
3. In the **Export dependencies** page, choose the appliance name that is discovering the desired servers.
185
189
4. Select the start time and end time. You can download the data only for the last 30 days.
186
190
5. Select **Export dependency**.
187
191
@@ -239,6 +243,153 @@ After you have performed the required steps to upgrade to the new dependency vis
239
243
> [!NOTE]
240
244
> It's recommended to use **Option 1** above to switch to the new inventory view as you're able to filter servers where dependency analysis was auto-enabled and then directly review the dependency visualization. Old inventory view only provides option to visualize dependencies for servers where you had manually enabled the feature.
241
245
246
+
::: moniker range="migrate"
247
+
248
+
## Manage dependencies
249
+
250
+
Dependency analysis is auto-enabled on all discovered servers (upto 1000 servers per appliance)which have passed the validation checks. You may need to disable one or more of these servers in the following scenarios:
251
+
252
+
1. Dependency analysis has been auto-enabled on all discovered in your project but you want to disable it on a few servers where you don't want to gather dependency data.
253
+
1. Dependency analysis has been auto-enabled on 1,000 servers concurrently in your project but you have more servers where you want to enable it, then you can disable dependency analysis one or more servers from the set of 1,000 and enable others as needed.
254
+
255
+
You can disable dependency analysis on servers that you do not want and also enable dependencies for servers that you want using either the Portal or PowerShell utility.
256
+
257
+
## Manage dependencies using Portal
258
+
259
+
### Disable dependencies
260
+
261
+
In **All inventory** or **Infrastructure inventory** view, select the **Manage Dependencies** drop-down and then select **Disable dependencies**.
262
+
263
+
:::image type="content" source="./media/how-to-create-group-machine-dependencies-agentless/old-dep-view.png" alt-text="The screenshot shows the old dependency view." lightbox="./media/how-to-create-group-machine-dependencies-agentless/disable-dependencies-option.png":::
264
+
265
+
Follow the steps to disbale the servers where dependency analysis has been auto-enabled:
266
+
267
+
1. You can start by selecting an appliance from the drop-down.
268
+
269
+
> [!NOTE]
270
+
> If the selected appliance has not been upgraded for the new dependency analysis, you can either meet the prerequisites or if you do not wish to upgrade, please switch to the old experience (from Overviw) to Add/remove servers for dependency analysis.
271
+
272
+
1. You can filter servers to disable dependencies on servers which were auto-enabled (servers with dependency status as Enabled). The servers which are not eligible for disablement (servers with dependency status as Validation failed/Not initiated/Disabled/Credentials not available) cannot be selected.
273
+
274
+
:::image type="content" source="./media/how-to-create-group-machine-dependencies-agentless/old-dep-view.png" alt-text="The screenshot shows the old dependency view." lightbox="./media/how-to-create-group-machine-dependencies-agentless/disable-dependencies-view.png":::
275
+
276
+
1. You can select the servers and select Disable to proceed.
277
+
278
+
### Enable dependencies
279
+
280
+
In **All inventory** or **Infrastructure inventory** view, select the **Manage Dependencies** drop-down and then select **Enable dependencies**.
281
+
282
+
Follow the steps to disbale the servers where dependency analysis has been auto-enabled:
283
+
284
+
1. You can start by selecting an appliance from the drop-down.
285
+
286
+
> [!NOTE]
287
+
> If the selected appliance has not been upgraded for the new dependency analysis, you can either meet the prerequisites or if you do not wish to upgrade, please switch to the old experience (from Overviw) to Add/remove servers for dependency analysis.
288
+
289
+
1. You can filter servers to enable dependencies on servers which were disabled by the user or not enabled as the scale limit of 1000 per appliance had been met (servers with dependency status as Disabled or Not initiated). The servers which are not eligible for disablement (servers with dependency status as Validation failed/Credentials not available/Enabled) cannot be selected.
290
+
291
+
:::image type="content" source="./media/how-to-create-group-machine-dependencies-agentless/old-dep-view.png" alt-text="The screenshot shows the old dependency view." lightbox="./media/how-to-create-group-machine-dependencies-agentless/enable-dependencies-view.png":::
292
+
293
+
1. You can select the servers and select Enable to proceed.
294
+
295
+
> [!NOTE]
296
+
> You cannot enable more than 1000 servers per appliance concurrently so if your selection exceeds the count, you will not be able to proceed.
297
+
298
+
## Manage dependencies using PowerShell utility
299
+
300
+
You need to install the PowerShell module to disable for servers that you don't want by following the steps below:
301
+
302
+
### Log in to Azure
303
+
304
+
1. Log in to your Azure subscription using the Connect-AzAccount cmdlet.
305
+
`Connect-AzAccount`
306
+
307
+
If using Azure Government, use the following command.
1. Install the AzMig.Dependencies PowerShell module
314
+
`Install-Module .\AzMig.Dependencies`
315
+
316
+
### Disable dependencies
317
+
318
+
1. Get the list of discovered servers in your project using the following commands. In the example below, the project name is ContosoDemoProject, and the resource group it belongs to be ContosoDemoRG. The list of servers are saved in ContosoDemo_VMs.csv
In the file, you can see the server display name, current status of dependency collection and the ARM ID of all discovered servers.
341
+
342
+
1. To disable dependencies, create an input CSV file from the output file you exported in the last step. The file is required to have a column with header "ARM ID". Any other headers in the CSV file are ignored. The input file should contain the list of servers where you want to disable dependency analysis.
343
+
344
+
In the following example, dependency analysis is being disabled on the list of servers in the input file ContosoDemo_VMs_Disable.csv.
You may need to enable dependency analysis on one or more servers to restart dependency data collection from servers that you disabled using PowerShell module previously.
351
+
352
+
You need to follow the same steps to export the discovered servers as mentioned above and then import the list of servers you want to enable.
353
+
354
+
In the following example, dependency analysis is being enabled on the list of servers in the input file ContosoDemo_VMs_Enable.csv.
Azure Migrate offers a Power BI template that you can use to visualize network connections of many servers at once, and filter by process and server. To visualize, load the Power BI with dependency data as per the below instructions.
361
+
362
+
### Log in to Azure
363
+
364
+
1. Log in to your Azure subscription using the Connect-AzAccount cmdlet.
365
+
`Connect-AzAccount`
366
+
367
+
If using Azure Government, use the following command.
1. Install the AzMig.Dependencies PowerShell module
373
+
`Install-Module .\AzMig.Dependencies`
374
+
1. Run the following command. This command downloads the dependencies data in a CSV and processes it to generate a list of unique dependencies that can be used for visualization in Power BI. In the example below the project name is ContosoDemoProject, and the resource group it belongs to be ContosoDemoRG. The dependencies are downloaded for servers discovered by ContosoApp. The unique dependencies are saved in ContosoDemo_Dependencies.csv
1. Load the downloaded dependency data in Power BI.
379
+
1. Open the template in Power BI.
380
+
1. Select Get Data on the tool bar.
381
+
1. Choose Text/CSV from Common data sources.
382
+
1. Choose the dependencies file downloaded.
383
+
1. Select Load.
384
+
You see a table is imported with the name of the CSV file. You can see the table in the fields bar on the right. Rename it to AzMig_Dependencies
385
+
1. Select refresh from the tool bar.
386
+
387
+
The Network Connections chart and the Source server name, Destination server name, Source process name, Destination process name slicers should light up with the imported data.
388
+
389
+
Visualize the map of network connections filtering by servers and processes. Save your file.
390
+
391
+
::: moniker-end
392
+
242
393
## Disable auto-enabled dependency analysis using PowerShell
243
394
244
395
Dependency analysis is auto-enabled on all discovered servers which have passed the validation checks. You may need to disable one or more of these servers in the following scenarios:
0 commit comments