You can use the cli utility az-automation
for creating a service principal account given you
have authenticated with the az
cli.
The output will include your subscription id, your tenant id, the client id, and the client secret.
These credentials will be passed to bbl
so that
it can interact with Azure.
- Export environment variables.
export BBL_IAAS=azure export BBL_AZURE_CLIENT_ID= export BBL_AZURE_CLIENT_SECRET= export BBL_AZURE_REGION= export BBL_AZURE_SUBSCRIPTION_ID= export BBL_AZURE_TENANT_ID=
- Create infrastructure, jumpbox, and bosh director.
bbl up
To get all of the above plus load balancers for Cloud Foundry:
-
To create cf load balancers for azure you must provide a certificate in the
.pfx
format:openssl genrsa -out DOMAIN_NAME.key 2048 openssl req -new -x509 -days 365 -key DOMAIN_NAME.key -out DOMAIN_NAME.crt openssl pkcs12 -export -out PFX_FILE -inkey DOMAIN_NAME.key -in DOMAIN_NAME.crt
-
Save the password you entered when prompted by
openssl
to a file.echo SuperSecretPassword > PFX_FILE_PASSWORD
-
To
bbl plan
orbbl up
you can provide the pfx file and password:bbl plan --lb-type cf --lb-cert PFX_FILE --lb-key PFX_FILE_PASSWORD bbl up