@@ -14,20 +14,20 @@ Removes a Storage blob container
14
14
15
15
### AccountName (Default)
16
16
```
17
- Remove-AzureRmStorageContainer [-ResourceGroupName] <String> [-StorageAccountName] <String> [ -Name] <String>
18
- [-Force] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
17
+ Remove-AzureRmStorageContainer [-ResourceGroupName] <String> [-StorageAccountName] <String> -Name <String>
18
+ [-Force] [-PassThru] [- DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
19
19
```
20
20
21
21
### AccountObject
22
22
```
23
- Remove-AzureRmStorageContainer [ -Name] <String> -StorageAccount <PSStorageAccount> [-Force]
23
+ Remove-AzureRmStorageContainer -Name <String> -StorageAccount <PSStorageAccount> [-Force] [-PassThru ]
24
24
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
25
25
```
26
26
27
27
### ContainerObject
28
28
```
29
- Remove-AzureRmStorageContainer -InputObject <PSContainer> [-Force] [-DefaultProfile <IAzureContextContainer> ]
30
- [-WhatIf] [-Confirm] [<CommonParameters>]
29
+ Remove-AzureRmStorageContainer -InputObject <PSContainer> [-Force] [-PassThru ]
30
+ [-DefaultProfile <IAzureContextContainer>] [- WhatIf] [-Confirm] [<CommonParameters>]
31
31
```
32
32
33
33
## DESCRIPTION
@@ -37,15 +37,15 @@ The **Remove-AzureRmStorageContainer** cmdlet removes a Storage blob container
37
37
38
38
### Example 1: Remove a Storage blob container with Storage account name and container name
39
39
```
40
- PS C:\>Remove-AzureRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer"
40
+ PS C:\>Remove-AzureRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer"
41
41
```
42
42
43
43
This command removes a Storage blob container with Storage account name and container name.
44
44
45
45
### Example 2: Remove a Storage blob container with Storage account object and container name
46
46
```
47
47
PS C:\>$accountObject = Get-AzureRmStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount"
48
- PS C:\>Remove-AzureRmStorageContainer -StorageAccount $accountObject -ContainerName "myContainer"
48
+ PS C:\>Remove-AzureRmStorageContainer -StorageAccount $accountObject -ContainerName "myContainer"
49
49
```
50
50
51
51
This command removes a Storage blob container with Storage account object and container name.
@@ -80,7 +80,7 @@ Force to remove the container and all content in it
80
80
` ` ` yaml
81
81
Type : SwitchParameter
82
82
Parameter Sets : (All)
83
- Aliases :
83
+ Aliases :
84
84
85
85
Required : False
86
86
Position : Named
@@ -113,19 +113,34 @@ Parameter Sets: AccountName, AccountObject
113
113
Aliases : N, ContainerName
114
114
115
115
Required : True
116
- Position : 2
116
+ Position : Named
117
117
Default value : None
118
118
Accept pipeline input : True (ByPropertyName, ByValue)
119
119
Accept wildcard characters : False
120
120
` ` `
121
121
122
+ ### -PassThru
123
+ {{Fill PassThru Description}}
124
+
125
+ ` ` ` yaml
126
+ Type : SwitchParameter
127
+ Parameter Sets : (All)
128
+ Aliases :
129
+
130
+ Required : False
131
+ Position : Named
132
+ Default value : None
133
+ Accept pipeline input : False
134
+ Accept wildcard characters : False
135
+ ` ` `
136
+
122
137
### -ResourceGroupName
123
138
Resource Group Name.
124
139
125
140
` ` ` yaml
126
141
Type : String
127
142
Parameter Sets : AccountName
128
- Aliases :
143
+ Aliases :
129
144
130
145
Required : True
131
146
Position : 0
@@ -140,7 +155,7 @@ Storage account object
140
155
` ` ` yaml
141
156
Type : PSStorageAccount
142
157
Parameter Sets : AccountObject
143
- Aliases :
158
+ Aliases :
144
159
145
160
Required : True
146
161
Position : Named
@@ -208,4 +223,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
208
223
## NOTES
209
224
210
225
## RELATED LINKS
211
-
0 commit comments