@@ -7,36 +7,45 @@ content_git_url: https://github.com/Azure/azure-powershell/blob/main/src/CosmosD
7
7
original_content_git_url : https://github.com/Azure/azure-powershell/blob/main/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBMongoDBRoleDefinition.md
8
8
---
9
9
10
- # Remove-AzCosmosDBMongoDBDatabase
10
+ # Remove-AzCosmosDBMongoDBRoleDefinition
11
11
12
12
## SYNOPSIS
13
- Deletes a CosmosDB MongoDB Database .
13
+ This cmdlet removes a MongoDB role definition from a specified Cosmos DB account .
14
14
15
15
## SYNTAX
16
16
17
- ### ByNameParameterSet
17
+ ### ByNameParameterSet (Default)
18
18
```
19
- Remove-AzCosmosDBMongoDBDatabase -AccountName <String> -Name <String> -ResourceGroupName <String> [-PassThru]
20
- [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
19
+ Remove-AzCosmosDBMongoDBRoleDefinition -ResourceGroupName <String> -AccountName <String> -Id <String>
20
+ [-PassThru] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
21
+ [-Confirm] [<CommonParameters>]
22
+ ```
23
+
24
+ ### ByParentObjectParameterSet
25
+ ```
26
+ Remove-AzCosmosDBMongoDBRoleDefinition -Id <String> -DatabaseAccountObject <PSDatabaseAccountGetResults>
27
+ [-PassThru] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
28
+ [-Confirm] [<CommonParameters>]
21
29
```
22
30
23
31
### ByObjectParameterSet
24
32
```
25
- Remove-AzCosmosDBMongoDBDatabase -InputObject <PSMongoDBDatabaseGetResults> [-PassThru]
26
- [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
33
+ Remove-AzCosmosDBMongoDBRoleDefinition -Id <String> -InputObject <PSMongoDBRoleDefinitionGetResults>
34
+ [-PassThru] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
35
+ [-Confirm] [<CommonParameters>]
27
36
```
28
37
29
38
## DESCRIPTION
30
- The ** Remove-AzCosmosDBMongoDBDatabase ** cmdlet deletes a CosmosDB MongoDB Database .
39
+ This cmdlet removes a MongoDB role definition from a specified Cosmos DB account .
31
40
32
41
## EXAMPLES
33
42
34
43
### Example 1
35
44
``` powershell
36
- Remove-AzCosmosDBMongoDBDatabase -ResourceGroupName "rgName " -AccountName "accountName " -Name "dbName "
45
+ Remove-AzCosmosDBMongoDBRoleDefinition -AccountName "account-name " -ResourceGroupName "resource-group-name " -Id "role-id "
37
46
```
38
47
39
- The cmdlet returns an object of type bool(when -PassThru is passed) which is true, if the delete was successful .
48
+ This command removes a MongoDB role definition from a specified Cosmos DB account .
40
49
41
50
## PARAMETERS
42
51
@@ -55,6 +64,21 @@ Accept pipeline input: False
55
64
Accept wildcard characters : False
56
65
` ` `
57
66
67
+ ### -DatabaseAccountObject
68
+ CosmosDB Account object
69
+
70
+ ` ` ` yaml
71
+ Type : Microsoft.Azure.Commands.CosmosDB.Models.PSDatabaseAccountGetResults
72
+ Parameter Sets : ByParentObjectParameterSet
73
+ Aliases :
74
+
75
+ Required : True
76
+ Position : Named
77
+ Default value : None
78
+ Accept pipeline input : True (ByValue)
79
+ Accept wildcard characters : False
80
+ ` ` `
81
+
58
82
### -DefaultProfile
59
83
The credentials, account, tenant, and subscription used for communication with Azure.
60
84
@@ -70,33 +94,33 @@ Accept pipeline input: False
70
94
Accept wildcard characters : False
71
95
` ` `
72
96
73
- ### -InputObject
74
- Mongo Database object .
97
+ ### -Id
98
+ Unique ID ( \< Databasename \> . \< RoleName \> ) for the MongoDB Role Definition .
75
99
76
100
` ` ` yaml
77
- Type : Microsoft.Azure.Commands.CosmosDB.Models.PSMongoDBDatabaseGetResults
78
- Parameter Sets : ByObjectParameterSet
101
+ Type : System.String
102
+ Parameter Sets : (All)
79
103
Aliases :
80
104
81
105
Required : True
82
106
Position : Named
83
107
Default value : None
84
- Accept pipeline input : True (ByValue)
108
+ Accept pipeline input : False
85
109
Accept wildcard characters : False
86
110
` ` `
87
111
88
- ### -Name
89
- Database name .
112
+ ### -InputObject
113
+ A MongoDB Role Definition For Mongo DB .
90
114
91
115
` ` ` yaml
92
- Type : System.String
93
- Parameter Sets : ByNameParameterSet
116
+ Type : Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.Models.MongoDB.PSMongoDBRoleDefinitionGetResults
117
+ Parameter Sets : ByObjectParameterSet
94
118
Aliases :
95
119
96
120
Required : True
97
121
Position : Named
98
122
Default value : None
99
- Accept pipeline input : False
123
+ Accept pipeline input : True (ByValue)
100
124
Accept wildcard characters : False
101
125
` ` `
102
126
@@ -167,11 +191,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
167
191
168
192
## INPUTS
169
193
170
- ### Microsoft.Azure.Commands.CosmosDB.Models.PSMongoDBDatabaseGetResults
194
+ ### Microsoft.Azure.Commands.CosmosDB.Models.PSDatabaseAccountGetResults
171
195
172
- ## OUTPUTS
196
+ ### Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.Models.MongoDB.PSMongoDBRoleDefinitionGetResults
173
197
174
- ### System.Void
198
+ ## OUTPUTS
175
199
176
200
### System.Boolean
177
201
0 commit comments