Skip to content

Spofibo/pulumi-azure-ts-flexiblemysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure FlexibleMySQL using the native Azure Provider

This example deploys a FlexibleMySQL server on Azure.

Deploying the App

To deploy your infrastructure, follow the below steps.

Prerequisites

  1. Install Pulumi
  2. Install node.js
  3. Configure Azure Credentials

Steps

After cloning this repo, from this working directory, run these commands:

  1. Create a new stack, which is an isolated deployment target for this example:

    $ pulumi stack init dev
  2. Next, install the dependencies:

    $ npm install
  3. Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):

    $ az login
  4. Set the Azure region location to use:

    $ pulumi config set azure-native:location eastus
    $ pulumi config set username resu
    $ pulumi config set --secret password drowssap
    
  5. Stand up the cluster by invoking pulumi

    $ pulumi up
  6. Check the server's fqdn address:

    $ pulumi stack output mysqlFqdn
  7. From there, feel free to experiment. Simply making edits and running pulumi up will incrementally update your stack.

  8. Once you've finished experimenting, tear down your stack's resources by destroying and removing it:

    $ pulumi destroy --yes
    $ pulumi stack rm --yes