scepman / install

SCEPman | Cloud-based Certification Authority
https://scepman.com/
8 stars 10 forks source link

PSModule: Provide a switch to suppress interactive installations #6

Closed bb-froggy closed 2 years ago

bb-froggy commented 2 years ago

Currently, if the script hits a wall, it will ask the user what to do next, e.g. whether it shall create a new storage account.

There shall be a switch -NoInteractive (or the like) that prevents Write-Host output and Read-Host input and instead just crashes (or use a reasonable default if possible). This allows the script to be used in an automated fashion where the caller shall not wait for the script and instead should be aware that something went wrong.