@@ -16,7 +16,7 @@ Captures a resource group as a template and saves it to a file.
16
16
```
17
17
Export-AzResourceGroup -ResourceGroupName <String> [-Path <String>] [-IncludeParameterDefaultValue]
18
18
[-IncludeComments] [-SkipResourceNameParameterization] [-SkipAllParameterization]
19
- [-ResourceIdFilter <String[]>] [-Force] [-ApiVersion <String>] [-Pre]
19
+ [-Resource <String[]>] [-Force] [-ApiVersion <String>] [-Pre]
20
20
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
21
21
```
22
22
@@ -38,14 +38,14 @@ This command captures the resource group named TestGroup as a template, and save
38
38
39
39
### Example 2: Export a single resource from a resource group
40
40
```
41
- PS C:\>Export-AzResourceGroup -ResourceGroupName "TestGroup" -ResourceIdFilter "/subscriptions/5f43547b-1d2d-4a3e-ace4-88d4b600d568/resourceGroups/TestGroup/providers/Microsoft.Compute/virtualMachines/TestVirtualMachine"
41
+ PS C:\>Export-AzResourceGroup -ResourceGroupName "TestGroup" -Resource "/subscriptions/5f43547b-1d2d-4a3e-ace4-88d4b600d568/resourceGroups/TestGroup/providers/Microsoft.Compute/virtualMachines/TestVirtualMachine"
42
42
```
43
43
44
44
This command captures the Virtual Machine resource named "TestVirtualMachine" from the "TestGroup" resource group as a template, and saves it to a JSON file in the current directory.
45
45
46
46
### Example 3: Export a selection of resources from a resource group
47
47
```
48
- PS C:\>Export-AzResourceGroup -ResourceGroupName "TestGroup" -SkipAllParameterization -ResourceIdFilter @(
48
+ PS C:\>Export-AzResourceGroup -ResourceGroupName "TestGroup" -SkipAllParameterization -Resource @(
49
49
"/subscriptions/5f43547b-1d2d-4a3e-ace4-88d4b600d568/resourceGroups/TestGroup/providers/Microsoft.Compute/virtualMachines/TestVm",
50
50
"/subscriptions/5f43547b-1d2d-4a3e-ace4-88d4b600d568/resourceGroups/TestGroup/providers/Microsoft.Network/networkInterfaces/TestNic"
51
51
)
@@ -176,7 +176,7 @@ Accept pipeline input: True (ByPropertyName)
176
176
Accept wildcard characters : False
177
177
` ` `
178
178
179
- ### -ResourceIdFilter
179
+ ### -Resource
180
180
A list of resourceIds to filter the results by.
181
181
182
182
` ` ` yaml
0 commit comments