I was updating my indexing policy using the powershell but It is adding "path": "/\"_etag\"/?" property in excludedpath by default
I want the Indexing policy to be
{
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [],
"excludedPaths": [
{
"path": "/*"
},
]
}
script I used
$indexPathExcluded = "/*"
$indexingPolicy = New-AzCosmosDBSqlIndexingPolicy -ExcludedPath $indexPathExcluded -IndexingMode Consistent -Automatic $true
update-AzCosmosDBSqlContainer -ResourceGroupName myresourcename -AccountName myaccountname -DatabaseName mydatabasename -Name myCollectionname -IndexingPolicy $indexingPolicy
But with this I am getting result as
{
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [],
"excludedPaths": [
{
"path": "/*"
},
{
"path": "/\"_etag\"/?"
}
]
}