azure.cosmosdb-collection

CosmosDB Collection Resource

example

This policy will find all collections with Offer Throughput > 100

policies:
  - name: cosmosdb-high-throughput
    resource: azure.cosmosdb-collection
    filters:
      - type: offer
        key: content.offerThroughput
        op: gt
        value: 100

Actions

replace-offer

CosmosDB Replace Offer Action

Modify the throughput of a cosmodb collection’s offer

example

This policy will ensure that no collections have offers with more than 400 RU/s throughput.

policies:
  - name: limit-throughput-to-400
    resource: azure.cosmosdb-collection
    filters:
      - type: offer
        key: content.offerThroughput
        op: gt
        value: 400
    actions:
      - type: replace-offer
        throughput: 400
properties:
  throughput:
    type: number
  type:
    enum:
    - replace-offer
required:
- throughput
- type