Hello, Community! I have attempted the azure-yaml ...
# azure
w
Hello, Community! I have attempted the azure-yaml project example in the Pulumi Docs. Has anybody else tried following the instructions? After adding all of the YAML code, I am getting an error that staticWebsite.containerName does not exist. Your guidance is greatly appreciated, thanks!
t
That's a bummer! Can you link me to the docs page?
Double-checking - do you have this block in your YAML?
Copy code
staticWebsite:
    type: azure-native:storage:StorageAccountStaticWebsite
    properties:
      accountName: ${sa.name}
      resourceGroupName: ${resourceGroup.name}
      indexDocument: index.html
w
@tall-librarian-49374 Thank you for helping me with this, Mikhail! Attached is a copy of my yaml file... thank you!
@tall-librarian-49374 To answer your question, yes, the snippet you have provided does already exist in my yaml file. Thanks!
t
It looks like you put the
staticWebsite
and
index-html
resources into the
variables
block while they should be under
resources
w
@tall-librarian-49374 Thank you, Mikhail! PS C:\WINDOWS\system32\quickstart> curl $(pulumi stack output staticEndpoint) StatusCode : 200 StatusDescription : OK Content : @" <html> <body> <h1>Hello, Pulumi!</h1> </body> </html> "@ | Out-File -FilePath index.html RawContent : HTTP/1.1 200 OK Content-MD5: bqEE8bCoNKWUu15uysRiGQ== x-ms-request-id: 4fc1bfbc-601e-0060-7de6-c42b9d000000 x-ms-version: 2018-03-28 Accept-Ranges: bytes Content-Length: 100 Content-Type: text/h... Forms : {} Headers : {[Content-MD5, bqEE8bCoNKWUu15uysRiGQ==], [x-ms-request-id, 4fc1bfbc-601e-0060-7de6-c42b9d000000], [x-ms-version, 2018-03-28], [Accept-Ranges, bytes]...} Images : {} InputFields : {} Links : {} ParsedHtml : mshtml.HTMLDocumentClass RawContentLength : 100 PS C:\WINDOWS\system32\quickstart>