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.
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.