Skip to content

Microsoft.App/managedEnvironments/PrivateEndpointConnectionsApproval/action error #31926

@itConsultant45

Description

@itConsultant45

Describe the bug

I've created a Least Privilege environment, all was going well until I added the Action below.

Command (Windows bash, I also tried "pwsh -c '...'" as that sometimes helps...)

az role definition create --role-definition role.json

json file

{
  "Name": "...",
  "Description": "...",
  "AssignableScopes": ["/subscriptions/.../resourceGroups/..."],
  "Actions": [
    "Microsoft.App/managedEnvironments/PrivateEndpointConnectionsApproval/action",
    ....
  ]
}

Error message

(InvalidActionOrNotAction) 'Microsoft.App/managedEnvironments/PrivateEndpointConnectionsApproval/action' does not match any of the actions supported by the providers.
Code: InvalidActionOrNotAction
Message: 'Microsoft.App/managedEnvironments/PrivateEndpointConnectionsApproval/action' does not match any of the actions supported by the providers.

Related command

az role definition create --role-definition role.json

{
"Name": "...",
"Description": "...",
"AssignableScopes": ["/subscriptions/.../resourceGroups/..."],
"Actions": [
"Microsoft.App/managedEnvironments/PrivateEndpointConnectionsApproval/action",
....
]
}

Errors

(InvalidActionOrNotAction) 'Microsoft.App/managedEnvironments/PrivateEndpointConnectionsApproval/action' does not match any of the actions supported by the providers.
Code: InvalidActionOrNotAction
Message: 'Microsoft.App/managedEnvironments/PrivateEndpointConnectionsApproval/action' does not match any of the actions supported by the providers.

Issue script & Debug output

N\A

Expected behavior

Should give the definition Microsoft.App/managedEnvironments/PrivateEndpointConnectionsApproval/action permissions.

Environment Summary

azure-cli 2.76.0

core 2.76.0
telemetry 1.1.0

Extensions:
containerapp 1.2.0b3
log-analytics 1.0.0b1

Dependencies:
msal 1.33.0b1
azure-mgmt-resource 23.3.0

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\x.azure'
Extensions directory 'C:\Users\x.azure\cliextensions'

Python (Windows) 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamRBACaz rolecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions