azure.hdinsight

HDInsight Resource

example

Finds all Hadoop HDInsight Clusters

policies:
  - name: hdinsight-policy
    resource: azure.hdinsight
    filters:
      - type: value
        key: properties.clusterDefinition.kind
        value_type: normalize
        value: hadoop
example

Finds all HDInsight Clusters with 3 worker nodes

policies:
  - name: hdinsight-policy
    resource: azure.hdinsight
    filters:
      - type: value
        key: properties.computeProfile.roles[?name=='workernode'].targetInstanceCount | [0]
        op: eq
        value_type: integer
        value: 3

Actions

resize

Action to scale HDInsight Clusters

example

This policy will resize the cluster to 4 nodes

policies:
  - name: resize-hdinsight
    resource: azure.hdinsight
    filters:
      - type: value
        key: name
        value: cctesthdinsight
    actions:
      - type: resize
        count: 4
properties:
  count:
    minimum: 1
    type: integer
  type:
    enum:
    - resize
required:
- count
- type