Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

Deploy the Changes

Deploy your changes by using pulumi up again.

$ pulumi up

Pulumi will run the preview step of the update, which computes the minimally disruptive change to achieve the desired state described by the program.

Previewing update (dev):

     Type                                                   Name                 Plan
     pulumi:pulumi:Stack                                    quickstart-dev
 +   ├─ azure-native:storage:StorageAccountStaticWebsite    staticWebsite        create
 +   └─ azure-native:storage:Blob                           index.html           create

  + staticEndpoint   : ""

    + 2 to create
    3 unchanged

Do you want to perform this update?
> no

Choosing yes will proceed with the update by uploading the index.html file to a storage container in your account and enabling static website support on the container.

Do you want to perform this update? yes
Updating (dev):

     Type                                                   Name                Status
     pulumi:pulumi:Stack                                    quickstart-dev
 +   ├─ azure-native:storage:StorageAccountStaticWebsite    staticWebsite       created
 +   └─ azure-native:storage:Blob                           index.html          created

    primaryStorageKey: "<key_value>"
  + staticEndpoint   : ""

    + 2 created
    3 unchanged

Duration: 4s

You can check out your new static website at the URL in the Outputs section of your update or you can make a curl request and see the contents of your index.html object printed out in your terminal.

$ curl $(pulumi stack output staticEndpoint)
$ curl $(pulumi stack output static_endpoint)
$ curl $(pulumi stack output staticEndpoint)
$ curl $(pulumi stack output StaticEndpoint)

And you should see:

        <h1>Hello, Pulumi!</h1>

Now that you have deployed your site, you will destroy the resources.