Metadata-Version: 2.1
Name: cloudicorn-azurerm
Version: 0.4
Summary: Taking Infrastructure As Code to the next level
Home-page: https://github.com/jumidev/cloudicorn-cli
Author: krezreb
Author-email: josephbeeson@gmail.com
License: MIT
Description-Content-Type: text/markdown
Requires-Dist: azure-mgmt-resource
Requires-Dist: azure-storage-blob
Requires-Dist: azure-storage-blob ==12.19.1
Requires-Dist: cloudicorn-cli
Requires-Dist: msal[broker] ==1.26.0

# cloudicorn_azurerm

Installs addons for handling azurerm backend components.

# setting up credentials

Once you have [installed and authenticated](https://github.com/jumidev/cloudicorn-cli/blob/master/https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) to your azure cli, create a service principal following [these instructions](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret)

You will get a result something like this:

```
{
  "appId": "00000000-0000-0000-0000-000000000000",
  "displayName": "azure-cli-2017-06-05-10-41-15",
  "name": "http://azure-cli-2017-06-05-10-41-15",
  "password": "0000-0000-0000-0000-000000000000",
  "tenant": "00000000-0000-0000-0000-000000000000"
}
```

Save them to environment variables (see `.envrc.tpl`)

|  value  | env var |
| ------- | ----------------|  
| `appId` | `AZURE_CLIENT_ID` |
| `password` | `AZURE_CLIENT_SECRET` |
| `tenant` | `AZURE_TENANT_ID` |

You'll also need to set `AZURE_SUBSCRIPTION_ID`

# running tests

Create a storage account and container that the above service principal can write to 


`make test` Uses terraform modules in `https://github.com/jumidev/cloudicorn-testmodules-azure`

- runs a set of components 
