Skip to content

Update-AzCosmosDBAccount IpRule instead of IpRules  #12655

@PavanBN25

Description

@PavanBN25

Reference: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/update-azcosmosdbaccount?view=azps-4.5.0

PS version -> 5.1

The command Update-AzCosmosDBAccount throws error when running with below fields.

Update-AzCosmosDBAccount
-ResourceGroupName
-Name
[-DefaultConsistencyLevel ]
[-EnableAutomaticFailover ]
[-EnableMultipleWriteLocations ]
[-EnableVirtualNetwork ]
[-IpRules <String[]>]
[-MaxStalenessIntervalInSeconds ]
[-MaxStalenessPrefix ]
[-Tag ]
[-VirtualNetworkRule <String[]>]
[-VirtualNetworkRuleObject <PSVirtualNetworkRule[]>]
[-DisableKeyBasedMetadataWriteAccess ]
[-PublicNetworkAccess ]
[-KeyVaultKeyUri ]
[-AsJob]
[-DefaultProfile ]
[-WhatIf]
[-Confirm]
[]

The IpRules field has to be IpRule instead. Is there any variance in the documentation or any difference between the two.

Metadata

Metadata

Assignees

Labels

CosmosDBService AttentionThis issue is responsible by Azure service team.customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions