2.9 KiB
title_tag, meta_desc, title, h1, weight, menu, aliases
title_tag | meta_desc | title | h1 | weight | menu | aliases | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Deploy the Changes | Azure | Learn how to deploy changes to an Azure project in this guide. | Deploy changes | Pulumi & Azure: Deploy changes | 7 |
|
|
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
Outputs:
+ staticEndpoint : "https://sa8dd8af62.z22.web.core.windows.net/"
Resources:
+ 2 to create
3 unchanged
Do you want to perform this update?
> yes
no
details
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
Outputs:
primaryStorageKey: "<key_value>"
+ staticEndpoint : "https://sa8dd8af62.z22.web.core.windows.net/"
Resources:
+ 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.
{{% choosable language typescript %}}
$ curl $(pulumi stack output staticEndpoint)
{{% /choosable %}}
{{% choosable language python %}}
$ curl $(pulumi stack output staticEndpoint)
{{% /choosable %}}
{{% choosable language go %}}
$ curl $(pulumi stack output staticEndpoint)
{{% /choosable %}}
{{% choosable language csharp %}}
$ curl $(pulumi stack output staticEndpoint)
{{% /choosable %}}
{{% choosable language java %}}
$ curl $(pulumi stack output staticEndpoint)
{{% /choosable %}}
{{% choosable language yaml %}}
$ curl $(pulumi stack output staticEndpoint)
{{% /choosable %}}
And in a few moments, you should see:
<html>
<body>
<h1>Hello, Pulumi!</h1>
</body>
</html>
Now that you have deployed your site, you will destroy the resources.
{{< get-started-stepper >}}