def observe

near-v-framework@0.4.0.0 · domain/architecture/system/deployment/azure/effects.bend:121

import near-v-framework@0.4.0.0/domain/architecture/system/deployment/azure/effects.bend as Effects
import Base
import bend-net-json@0.3.0.0/json.bend as Json
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/azure/type.bend as Az

121# Azure as it is: who is signed in, its resources and groups, and the signed-in user's permissions.
122def observe() -> IO(Az.Observed):
123  do IO<Az.Observed>:
124    account : String <- az_run(["account", "show", "--query", "{name:user.name,id:id}", "-o", "json"])
125    signed(Json.parse(account))

Uses (8)

Used by (1)