Skip to content

[Bug]: LinkedAccessCheckFailed error cannot be parsed #44

@maniSbindra

Description

@maniSbindra

Version

Terraform version: 1.9.7
azmpf version: v0.12.0

In rare cases like when creating vpn gateway, associating public ip, without the required permsission, following
LinkedAccessCheckFailed error is received.

performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: LinkedAccessCheckFailed: The client with object id 'ddfcf162-2cf2-40cf-bd4a-49a63e248436' does not have authorization to perform action 'Microsoft.Network/publicIPAddresses/join/action' over scope '/subscriptions/SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS/resourceGroups/rg-bhlqb/providers/Microsoft.Network/publicIPAddresses/vpn-pip-bhlqb' or the scope is invalid

The parsing logic is similar but a bit different to the standard AuthorizationFailed error

What happened?

When running the utitlity for terraform in certain situations like when creating vpn gateway, associating public ip, without the required permsission, the LinkedAccessCheckFailed error is received

Steps to reproduce

When running the utitlity for terraform in certain situations like when creating vpn gateway, associating public ip, without the required permsission, the LinkedAccessCheckFailed error is received

Relevant log output

Virtual Network Gateway Name: \"vpn-bhlqb\"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: LinkedAccessCheckFailed: The client with object id 'ddfcf162-2cf2-40cf-bd4a-49a63e248436' does not have authorization to perform action 'Microsoft.Network/publicIPAddresses/join/action' over scope '/subscriptions/SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS/resourceGroups/rg-bhlqb/providers/Microsoft.Network/publicIPAddresses/vpn-pip-bhlqb' or the scope is invalid. For details on the required permissions, please visit 'https://aka.ms/vngwroles'. If access was recently granted, please refresh your credentials.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions