Skip to content

Instantly share code, notes, and snippets.

@csandfeld
Last active July 22, 2022 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csandfeld/ba9503123f249c6a287fd7228d656962 to your computer and use it in GitHub Desktop.
Save csandfeld/ba9503123f249c6a287fd7228d656962 to your computer and use it in GitHub Desktop.
azure automation sequence diagrams

sequenceDiagram autonumber

actor User as Requester
participant AYS as At Your Service
participant SM as Service Manager
participant Init as Init Script
participant Transaction as Transaction Runbook
participant Action as Action Runbook(s)
participant Share as File Share

User->>AYS: Fills in form data
AYS->>SM: Creates SM request
activate SM

SM->>Init: Invokes init script
activate Init
note over Init: Pulls data from SM request
note over Init: Generates JSON payload
Init->>Transaction: Sends payload to transaction
deactivate Init
activate Transaction

note over Transaction: Start invoking job specific actions
loop foreach action in payload
    Transaction->>Action: Sends payload to action
    activate Action
    note over Action: Perform actions
    Action->>Transaction: Returns updated payload
    deactivate Action
end
note over Transaction: Done invoking job specific actions
Transaction->>User: Sends status mail to user
Transaction->>Action: Sends payload to action
activate Action
deactivate Transaction

Action->>SM: Close SM request

deactivate SM
Action->>Share: Saves payload as log in file share
deactivate Action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment