Skip to content

Bug Report - 403 when using key for storage accounts #2094

@ocag305

Description

@ocag305

Describe the bug

When deploying, if organizational policies prevent access to storage accounts using keys, the deployment fails. The error message indicates that key-based authentication is not permitted on the storage account. In such cases, the deployment scripts should utilize managed identity for authentication instead of relying on storage account keys.

Steps to reproduce

  1. Deploy the solution in an environment where policies disallow key-based access to storage accounts.
  2. Observe deployment failure due to forbidden key-based authentication.

Error sample (sensitive information removed):

"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed.",
"details": [{
  "code": "ResourceDeploymentFailure",
  "message": "Key based authentication is not permitted on this storage account. Status: 403 (Key based authentication is not permitted on this storage account.) ErrorCode: KeyBasedAuthenticationNotPermitted"
}]

Suggestion: Update deployment scripts to use managed identity when access with keys is not allowed by policy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions