Skip to content

Getting started for Azure is not working #5392

Closed
@sujithq

Description

@sujithq

File: docs/get-started/azure/modify-program.md

Issue 1
StorageAccountStaticWebsite is not available in Pulumi.AzureNative.Storage.Latest so this reference Pulumi.AzureNative.Storage should be added

// Enable static website support
var staticWebsite = new Pulumi.AzureNative.Storage.StorageAccountStaticWebsite("staticWebsite", new 
Pulumi.AzureNative.Storage.StorageAccountStaticWebsiteArgs
{
    AccountName = storageAccount.Name,
    ResourceGroupName = resourceGroup.Name,
    IndexDocument = "index.html",
});
// Upload the file
var index_html = new Pulumi.AzureNative.Storage.Blob("index.html", new Pulumi.AzureNative.Storage.BlobArgs
{
    ResourceGroupName = resourceGroup.Name,
    AccountName = storageAccount.Name,
    ContainerName = staticWebsite.ContainerName,
    Source = new FileAsset("./site/index.html"),
    ContentType = "text/html",
});

Issue 2
pulumi up throws an error:

error reading storage account "xxx" service properties: accounts.Client#GetServiceProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthenticationFailed" Message="Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:xxx\nTime:2021-03-04T10:15:28.7363385Z"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions