'description': 'Role has permission to read website publishing profile.', Publishing profile reader role is copied from the Contributorrole and should have the following JSON definition: Create Publishing profile reader role at the Web App level.If access was recently granted, please refresh your credentials.Įven “Owner” role in a slot has the same result: the slot owner can not deploy to that slot it has no permission over the Web App.įrom the deployment error above it is clear that this role needs a permission to Microsoft.Web/sites/publishxml/Action Over scope '/subscriptions/XXX/resourceGroups/myresgroup/providers/Microsoft.Web/sites/mywebapp'
tenant XXXĪz webapp deployment source config-zip -resource-group myresgroup -name mywebapp -src archive.zip -slot testĮRROR: AuthorizationFailed - The client 'XXX' with object id 'XXX'ĭoes not have authorization to perform action 'Microsoft.Web/sites/publishxml/action'
Az login -service-principal -username XXX -password.