Remove-AzCosmosDBMongoDBUserDefinition
Tar bort en befintlig CosmosDB MongoDB-användardefinition.
Syntax
Remove-AzCosmosDBMongoDBUserDefinition
-ResourceGroupName <String>
-AccountName <String>
-Id <String>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzCosmosDBMongoDBUserDefinition
-Id <String>
-DatabaseAccountObject <PSDatabaseAccountGetResults>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzCosmosDBMongoDBUserDefinition
-Id <String>
-InputObject <PSMongoDBUserDefinitionGetResults>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Cmdleten Remove-AzCosmosDBMongoDBUserDefinition tar bort en befintlig CosmosDB MongoDB-användardefinition.
Exempel
Exempel 1
Remove-AzCosmosDBMongoDBUserDefinition -ResourceGroupName rgName -AccountName accountName -Id userDefId
Cmdleten returnerar ett objekt av typen bool(when -PassThru is passed) som är sant, om borttagningen lyckades.
Exempel 2
$UserDef = Get-AzCosmosDBMongoDBUserDefinition -AccountName accountName -ResourceGroupName resourceGroupName -Id id
Remove-AzCosmosDBMongoDBUserDefinition -InputObject $UserDef
Cmdleten returnerar ett objekt av typen bool(when -PassThru is passed) som är sant, om borttagningen lyckades.
Parametrar
-AccountName
Namnet på Cosmos DB-databaskontot.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DatabaseAccountObject
CosmosDB-kontoobjekt
Type: | PSDatabaseAccountGetResults |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
Mongo-användardefinitions-ID.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
PSMongoDBUserDefinitionGetResults-objekt
Type: | PSMongoDBUserDefinitionGetResults |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PassThru
Anges till true om användaren vill ta emot utdata. Utdata är sanna om åtgärden lyckades och ett fel utlöses om inte.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Namnet på resursgruppen.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Indata
Microsoft.Azure.Commands.CosmosDB.Models.PSMongoDBUserDefinitionGetResults
Utdata
Relaterade länkar
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för