An open API service indexing awesome lists of open source software.

https://github.com/murilobeltrame/hello-azure-automation

Azure Automation example
https://github.com/murilobeltrame/hello-azure-automation

automation azure powershell terraform

Last synced: 3 months ago
JSON representation

Azure Automation example

Awesome Lists containing this project

README

          

# Hello Azure Automation

An example on how use Azure Automation Runbook to execute operations against Azure SQL Databases.

The Terraform file creates an instance of Azure SQL Server, Database and Database Objects as well an Azure Automation Account with a RunBook that is triggered hourly to execute a Stored Procedure via PowerShell.

![Implementation](docs/images/Impl.png)

## Dependencies

- [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli)
- [Terraform](https://www.terraform.io/downloads.html)
- [sqlcmd](https://docs.microsoft.com/sql/tools/sqlcmd-utility)

## Running the project

```sh
$ cd env/
$ az login
$ terraform init
$ terraform apply -var resource_group_name="myrg"
```