Skip to content

ChendrayanV/iAutomate

Repository files navigation

iAutomate

This repository shares the DAPR demo applications built using the PowerShell modules #Pode and #PSHTML.

Credits

References

Subscribe to my YouTube Channel

IMAGE ALT TEXT HERE

Dapr'ize PowerShell Pode Application

IMAGE ALT TEXT HERE

Input Binding (Cron Schedule)

dapr run --log-level debug --app-id schedule --app-port 3000 --dapr-http-port 3500 --dapr-grpc-port 60002 --components-path .\components\  -- pwsh .\input-binding\scheduler\app.ps1
# Output
# == APP == @{Name=Chendrayan Venkatesan; Time=13:59}

Input Binding (Azure Service Bus)

dapr run --log-level debug --app-id servicebus --app-port 3000 --dapr-http-port 3500 --dapr-grpc-port 60002 --components-path .\components\  -- pwsh .\input-binding\azure-service-bus\app.ps1

IMAGE ALT TEXT HERE

Publish - Subscribe

dapr run --app-id sub-app-a --app-port 3000 --dapr-http-port 3500 -d .\components\ -- pwsh .\publish-subscribe\sub-app-a.ps1
dapr run --app-id pub-app-a --app-port 3001 -d .\components\ -- pwsh .\publish-subscribe\pub-app-a.ps1

IMAGE ALT TEXT HERE

Service To Service Invocation

Open a PowerShell console host

dapr run --app-id order --app-port 6001 --dapr-http-port 3601 --dapr-grpc-port 60001 -- pwsh .\service-to-service-invocation\order\app.ps1

run the below command in another PowerShell console host

dapr run --app-id checkout --app-port 6002 --dapr-http-port 3602 --dapr-grpc-port 60002 -- pwsh .\service-to-service-invocation\checkout\app.ps1

IMAGE ALT TEXT HERE

State Store (Azure Table Storage)

Assuming you have an Azure Storage Table in place. If not, create one using the quick start guide.

Replace the value in statestore.yaml (components/) file

dapr run --log-level debug --app-id outputbinding --app-port 3000 --dapr-http-port 3500 --dapr-grpc-port 60002 --components-path .\components\ -- pwsh .\output-binding\app\app.ps1

IMAGE ALT TEXT HERE

BICEP TEMPLATE FOR AZURE CONTAINER APPS

IMAGE ALT TEXT HERE

Azure Container Apps - (End to End Automation using PowerShell & Bicep)

IMAGE ALT TEXT HERE

Releases

No releases published

Packages

No packages published