workflow:
  id: aks-pod-status-monitor
  name: AKS Pod Status Monitor
  description: Retrieves and displays status information for all pods in an AKS cluster, including pod names, namespaces, and current phase.
  triggers:
    - type: manual
  steps:
    # get all pods
    - name: get-pods
      provider:
        type: aks
        config: "{{ providers.aks }}"
        with:
          command_type: get_pods
  actions:
    - name: echo-pod-status
      foreach: "{{ steps.get-pods.results }}"
      provider:
        type: console
        with:
          message: "Pod name: {{ foreach.value.metadata.name }} || Namespace: {{ foreach.value.metadata.namespace }} || Status: {{ foreach.value.status.phase }}"
