Azure / Azure-Functions

1.1k stars 189 forks source link

Please Document what is required for the Code + Test pane to work #2479

Open mxrss2 opened 1 month ago

mxrss2 commented 1 month ago

image

Please put the actual minimum permissions to get this to work -- this is extremly frustrating -- granting my devs contributor access to just test a function is nuts.

These are the perms i set and if some arent in there it sort of works but obviously wont run the function.

{
    "id": "",
    "properties": {
        "roleName": "Azure Func Exector",
        "description": "V2",
        "assignableScopes": [

        ],
        "permissions": [
            {
                "actions": [
                    "microsoft.web/sites/functions/action",
                    "microsoft.web/sites/functions/delete",
                    "microsoft.web/sites/functions/listsecrets/action",
                    "microsoft.web/sites/functions/read",
                    "microsoft.web/sites/functions/write",
                    "microsoft.web/sites/functions/masterkey/read",
                    "microsoft.web/sites/functions/token/read",
                    "Microsoft.Web/sites/config/list/Action",
                    "microsoft.web/sites/host/sync/action",
                    "microsoft.web/sites/host/listkeys/action",
                    "microsoft.web/sites/functions/listkeys/action"
                ],
                "notActions": [],
                "dataActions": [],
                "notDataActions": []
            }
        ]
    }
}
mxrss2 commented 1 month ago

what perm set is required for this api

`` https://management.azure.com/subscriptions/SUB_ID/resourceGroups/RES_GROUP/providers/Microsoft.Web/sites/FUNC/hostruntime/admin/vfs//host.json?relativePath=1&api-version=2022-03-01

bhagyshricompany commented 1 month ago

Thanks for informing will update.

bhagyshricompany commented 1 month ago

@fabiocav please comment and validate.

vdias commented 6 days ago

Any update on this topic?