Is there any straight forward way to publish a Feature Service to an Enterprise Portal from a GDB or queried feature class in an SDE using either the Python API or arcpy.
I previously used the Python API's Geoaccesor to pull in polygon feature classes from a GDB, but the Geoaccessor seems limited to pandas dataframes with Pro 3.2
My current work around is to create an sd off a map in an APRX using arcpy & then add the sd to content using the Python API. Though this takes a while to run (10-30 min) and loses any definition queries applied to the layer.
Would love a simple publish from .gdb or federated .sde tool/tutorial.