Hi. We want to begin using ArcGIS Pro to publish services directly to ArcGIS Server (without portal). Using ArcGIS Pro 2.3 we can assemble the pieces to create a script that generates an .sd file. However, we can't figure out how to do an Analyze prior to (or while) generating the .sddraft or .sd files to ensure our service is in good shape and to ensure we are pointing to the right sde database stage so we don't accidentally upload data to server.
I am new to scripting this function, but I think we are looking for something similar to mapping.AnalyzeforSD. Or we'd be okay with performing the analyze manually prior to running the script.
Can anyone help?
An equivalency bug has been logged to allow users to analyze SD draft files in python in ArcGIS Pro. This functionality should be included in the Pro 2.4 release.
BUG-000121126: ArcPy.mp has no current equivalent of ArcPy.Mapping.AnalyzeForSD, preventing ArcGIS Pro users from analyzing service drafts for errors via Python.
Hope this helps!
Please note: This is still not resolved in arcpy for ArcGIS Pro 2.6.1.
Here's a link to the bug: https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEyMTEyNg==
Currently the status is "Not in Current Product Plan"