@@ -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
- [-FilteredResourceIds <String[]>] [-Force] [-ApiVersion <String>] [-Pre]
19
+ [-ResourceIdFilter <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" -FilteredResourceIds "/subscriptions/5f43547b-1d2d-4a3e-ace4-88d4b600d568/resourceGroups/TestGroup/providers/Microsoft.Compute/virtualMachines/TestVirtualMachine"
41
+ PS C:\>Export-AzResourceGroup -ResourceGroupName "TestGroup" -ResourceIdFilter "/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 -FilteredResourceIds @(
48
+ PS C:\>Export-AzResourceGroup -ResourceGroupName "TestGroup" -SkipAllParameterization -ResourceIdFilter @(
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
)
@@ -86,21 +86,6 @@ Accept pipeline input: False
86
86
Accept wildcard characters : False
87
87
` ` `
88
88
89
- ### -FilteredResourceIds
90
- A list of resourceIds to filter the results by.
91
-
92
- ` ` ` yaml
93
- Type : System.String[]
94
- Parameter Sets : (All)
95
- Aliases :
96
-
97
- Required : False
98
- Position : Named
99
- Default value : None
100
- Accept pipeline input : False
101
- Accept wildcard characters : False
102
- ` ` `
103
-
104
89
### -Force
105
90
Forces the command to run without asking for user confirmation.
106
91
@@ -191,6 +176,21 @@ Accept pipeline input: True (ByPropertyName)
191
176
Accept wildcard characters : False
192
177
` ` `
193
178
179
+ ### -ResourceIdFilter
180
+ A list of resourceIds to filter the results by.
181
+
182
+ ` ` ` yaml
183
+ Type : System.String[]
184
+ Parameter Sets : (All)
185
+ Aliases :
186
+
187
+ Required : False
188
+ Position : Named
189
+ Default value : None
190
+ Accept pipeline input : False
191
+ Accept wildcard characters : False
192
+ ` ` `
193
+
194
194
### -SkipAllParameterization
195
195
Skip all parameterization.
196
196
0 commit comments