Guidance

prancer is a cloud validation framework using for cloud governance

Step 3 - Configure the connection to Azure

Next we need to setup a connection to your Azure environment. This requires the creation of an api versions file and a structure file:

cat <<EOT >> azureApiVersions.json
{
    "Microsoft.Compute/availabilitySets": {
        "version": "2018-06-01"
    },
    "Microsoft.Network/virtualNetworks": {
        "version": "2018-07-01"
    },
    "Microsoft.Storage/storageAccounts": {
        "version": "2018-07-01"
    },
    "Microsoft.KeyVault/vaults": {
        "version": "2015-06-01"
    },
    "Microsoft.Network/networkSecurityGroups": {
        "version": "2018-11-01"
    },
    "fileType": "structure",
    "type": "others"
}
EOT
cat <<EOT >> azureConnector.json
{
    "companyName": "Company Name",
    "tenant_id": "REPLACE THIS WITH YOUR TENANT ID",
    "accounts": [
        {
            "department": "Unit/Department name",
            "subscription": [
                {
                    "subscription_name": "Subscription (Account) name",
                    "subscription_description": "Subscription (Account) description",
                    "subscription_id": "REPLACE THIS WITH YOUR SUBSCRIPTION ID",
                    "users": [
                        {
                            "name":"prancer-quickstart",
                            "client_id": "REPLACE THIS WITH YOUR SPN CLIENT ID",
                            "client_secret": "REPLACE THIS WITH YOUR SPN CLIENT SECRET"
                        }
                    ]
                }
            ]
        }
    ]
}
EOT

Important

Replace the values in CAPITAL in the last commands or the example won’t work. If you need help finding this information, checkout the [Azure connector](http://docs.prancer.io/connectors/azure) reference.

Suggest Edit