-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
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.jsonjson 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