For .NET Core apps deployed on Linux OS, there are two approaches for generating heapdump:
The above approaches do not work on TAS (prior to v2.11.2) Linus Diego Cell at this point because they both require CAP_SYS_PTRACE capacity on the OS which is disabled by the container hardening rules.
The problem has been resolved in TAS versions 2.11.2 and above; heapdump is now supported on TAS Linux Diego Cell.