I am receiving an Access Forbidden message when I attempt to access an Azure storage table that I created in Pulumi.
I have tried accessing the storage table in the Azure portal and in Azure Storage Explorer.
{"odata.error":{"code":"AuthenticationFailed","message":{"lang":"en-US","value":"Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\nTime:2023-01-20T23:21:57.8113163Z"}}}
The following code does not resolve the access forbidden issue:
var sas = Pulumi.Azure.Storage.GetAccountSAS.Invoke(new()
{
ConnectionString = storageAccount.PrimaryConnectionString,
HttpsOnly = true,
SignedVersion = "2017-07-29",
ResourceTypes = new Pulumi.Azure.Storage.Inputs.GetAccountSASResourceTypesInputArgs
{
Service = true,
Container = true,
Object = false,
},
Services = new Pulumi.Azure.Storage.Inputs.GetAccountSASServicesInputArgs
{
Blob = true,
Queue = true,
Table = true,
File = true,
},
Start = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ssK"),
Expiry = DateTime.Now.AddYears(1).ToString("yyyy-MM-ddTHH:mm:ssK"),
Permissions = new Pulumi.Azure.Storage.Inputs.GetAccountSASPermissionsInputArgs
{
Read = true,
Write = true,
Delete = false,
List = true,
Add = true,
Create = true,
Update = true,
Process = true,
Tag = true,
Filter = true
},
});
Update: I'm researching how to use an Account Access Key.
Access Control:
The following is my access control for the storage account that harbors the storage table: