@@ -12,8 +12,19 @@ Removes a container group.
12
12
13
13
## SYNTAX
14
14
15
+ ### RemoveContainerGroupByResourceGroupAndNameParamSet
15
16
```
16
- Remove-AzureRmContainerGroup [-ResourceGroupName] <String> [-Name] <String>
17
+ Remove-AzureRmContainerGroup [-ResourceGroupName] <String> [-Name] <String> [-WhatIf] [-Confirm]
18
+ ```
19
+
20
+ ### RemoveContainerGroupByPSContainerGroupParamSet
21
+ ```
22
+ Remove-AzureRmContainerGroup -InputObject <PSContainerGroup> [-WhatIf] [-Confirm]
23
+ ```
24
+
25
+ ### RemoveContainerGroupByResourceIdParamSet
26
+ ```
27
+ Remove-AzureRmContainerGroup -ResourceId <String> [-WhatIf] [-Confirm]
17
28
```
18
29
19
30
## DESCRIPTION
@@ -35,14 +46,51 @@ PS C:\> Get-AzureRmContainerGroup -ResourceGroupName MyResourceGroup -Name MyCon
35
46
36
47
This command removes a container group by piping.
37
48
49
+ ### Example 3: Removes a container group by resource Id.
50
+ ```
51
+ PS C:\> Find-AzureRmResource -ResourceGroupEquals MyResourceGroup -ResourceNameEquals MyContainer | Remove-AzureRmContainerGroup
52
+ ```
53
+
54
+ This command removes a container group by resource Id.
55
+
38
56
## PARAMETERS
39
57
58
+ ### -Confirm
59
+ Prompts you for confirmation before running the cmdlet.
60
+
61
+ ``` yaml
62
+ Type : SwitchParameter
63
+ Parameter Sets : (All)
64
+ Aliases : cf
65
+
66
+ Required : False
67
+ Position : Named
68
+ Default value : None
69
+ Accept pipeline input : False
70
+ Accept wildcard characters : False
71
+ ` ` `
72
+
73
+ ### -InputObject
74
+ The container group to remove.
75
+
76
+ ` ` ` yaml
77
+ Type : PSContainerGroup
78
+ Parameter Sets : RemoveContainerGroupByPSContainerGroupParamSet
79
+ Aliases :
80
+
81
+ Required : True
82
+ Position : Named
83
+ Default value : None
84
+ Accept pipeline input : True (ByValue)
85
+ Accept wildcard characters : False
86
+ ` ` `
87
+
40
88
### -Name
41
89
The container group name.
42
90
43
91
` ` ` yaml
44
92
Type : String
45
- Parameter Sets : (All)
93
+ Parameter Sets : RemoveContainerGroupByResourceGroupAndNameParamSet
46
94
Aliases :
47
95
48
96
Required : True
@@ -57,7 +105,7 @@ The resource group name.
57
105
58
106
` ` ` yaml
59
107
Type : String
60
- Parameter Sets : (All)
108
+ Parameter Sets : RemoveContainerGroupByResourceGroupAndNameParamSet
61
109
Aliases :
62
110
63
111
Required : True
@@ -67,18 +115,18 @@ Accept pipeline input: True (ByPropertyName)
67
115
Accept wildcard characters : False
68
116
` ` `
69
117
70
- ### -Confirm
71
- Prompts you for confirmation before running the cmdlet .
118
+ ### -ResourceId
119
+ The resource id .
72
120
73
121
` ` ` yaml
74
- Type : SwitchParameter
75
- Parameter Sets : (All)
76
- Aliases : cf
122
+ Type : String
123
+ Parameter Sets : RemoveContainerGroupByResourceIdParamSet
124
+ Aliases :
77
125
78
- Required : False
126
+ Required : True
79
127
Position : Named
80
128
Default value : None
81
- Accept pipeline input : False
129
+ Accept pipeline input : True (ByPropertyName)
82
130
Accept wildcard characters : False
83
131
` ` `
84
132
@@ -101,6 +149,7 @@ Accept wildcard characters: False
101
149
## INPUTS
102
150
103
151
### System.String
152
+ Microsoft.Azure.Commands.ContainerInstance.Models.PSContainerGroup
104
153
105
154
106
155
## OUTPUTS
0 commit comments