Scripting types
These are scripts such as Bash, PowerShell, or any other languages that use the different clients (SDKs) provided by the cloud provider; for example, you can script the provisioning of an Azure infrastructure with the Azure CLI or Azure PowerShell.
For example, here is the command that creates a resource group in Azure:
- Using the Azure CLI (the documentation is at https://bit.ly/2V1OfxJ), we have the following:
az group create -location westeurope -name MyAppResourcegroup
- Using Azure PowerShell (the documentation is at https://bit.ly/2VcASeh), we have the following:
New-AzResourceGroup -Name MyAppResourcegroup -Location westeurope
The problem with these languages and tools is that they require a lot of lines of code because we need to manage the different states of the manipulated resources and it is necessary to write all of the steps of the creation or update of the desired infrastructure.
However, these languages and tools can be very useful for tasks that automate repetitive actions to be performed on a list of resources (selection and query) or that require complex processing with a certain logic to be performed on infrastructure resources such as a script that automates the deletion of VMs that carry a certain tag.