Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.49 KB

getting-started-azure.md

File metadata and controls

51 lines (41 loc) · 1.49 KB

Getting Started: Microsoft Azure

Create a Service Principal Account

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.

Infrastructure, Jumpbox, Director

  1. 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=
    
  2. Create infrastructure, jumpbox, and bosh director.
    bbl up
    

+ Cloud Foundry Load Balancers

To get all of the above plus load balancers for Cloud Foundry:

  1. 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
    
  2. Save the password you entered when prompted by openssl to a file.

    echo SuperSecretPassword > PFX_FILE_PASSWORD
    
  3. To bbl plan or bbl 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