• Azure - Linux - Microsoft - SQLServer

    Linux Scripting, Part III

    In the previous blog posts, we learned how to set up the first part of a standard shell script- how to interactively set variables, including how to pass them as part of the script execution. In this next step, we’ll use those to build out Azure resources. If you’re working on-premises, you can use this type of scripting with SQL Server 2019 Linux but will need to use CLI commands and SQLCMD. I will cover this in later posts, but honestly, the cloud makes deployment quicker for any business to get what they need deployed and with the amount of…

  • Azure - Linux - Microsoft

    Linux Scripting, Part II

    In Part I, we started with some scripting basics, as in, how to write a script. This included the concepts of breaking a script into sections, (introduction, body and conclusion) For Part II, we’ll start with the BASH script “introduction”. The introduction in a BASH script should begin the same in all scripts. Set the shell to be used for the script Set the response to failure on any steps, (exit or ignore) Add in a step for testing, but comment out or remove when in production For our scripts, we’ll keep to the BASH format that is used by…

  • Microsoft

    Dynamic Values in Linux Scripting

    I do a LOT of scripting. Given the choice to click in a GUI vs. typing at the command line, I’ll choose the command line. Given the choice to type commands in repeatedly vs. scripting out a task I perform more than twice, I’ll script. Scripting effectively is an art as much as it’s a science. Where a GUI can change, both in content, as well as layout, a script is less impacted by this when it is designed to dynamically work with the catalog. You have the choice to either work with the values in an array or to…