<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using python in ArcGIS Pro to upload a map service to ArcGIS for Server or Portal    in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-python-in-arcgis-pro-to-upload-a-map-service/m-p/312110#M24292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks to me that if you only have ArcGIS Pro on your desktop, you can no longer upload a map service to ArcGIS Server. The options for publishing to Portal for ArcGIS are also limited.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly if you want to load and configure a map manually in ArcGIS Pro you can only publish to Portal or to ArcGIS Online, because in ArcGIS Pro you cannot make a direct connection to ArcGIS for Server any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to publish a map using python, the old &lt;SPAN style="background-color: #ffffff;"&gt;arcpy.mapping.CreateMapSDDraft in ArcMap is now replaced by &lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;arcpy.mp.CreateWebLayerSDDraft. However, firstly you have to access a Project from python (use &lt;SPAN&gt;arcpy.mp.ArcGISProject to set up your environment)&amp;nbsp;&lt;/SPAN&gt;which in a shared setup you may not want to do. Secondly &lt;SPAN&gt;CreateWebLayerSDDraft only allows you to&amp;nbsp;&lt;/SPAN&gt;publish to ArcGIS Online, i.e. you cannot even create an sddraft that is configured to publish to your own internal Portal. Strange!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;&lt;SPAN style="color: #595959;"&gt;So the first question is, how are people going to publish to ArcGIS for Server if they only have ArcGIS Pro on their desktop? &amp;nbsp;In ArcGIS Pro, you cannot connect to ArcGIS for Server for "manual" publishing&amp;nbsp;from a map, and neither can you connect to&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #595959;"&gt;ArcGIS for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #595959;"&gt;Server with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;arcpy.mp.CreateWebLayerSDDraft to use python for publishing. I had a look at the arcpy.sharing functionality, but there also, publishing is limited to Portal or ArcGIS Online. Is this an oversight?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #595959;"&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;Now imagine I forget about publishing to ArcGIS for Server, it seems I am also limited in publishing to Portal. Say I want to use python in ArcGIS Pro to publish a map tile service directly to Portal for ArcGIS. This cannot be done because creating an SDDraft in python can only connect to ArcGIS Online. I have tried all options, but to me it looks like this is no longer possible. So in ArcGIS Pro my options are limited as follows: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;1. Use python: can &lt;EM&gt;only&lt;/EM&gt; publish to ArcGIS Online&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;2. Manually publishing from a map: can publish to Portal and ArcGIS Online (but I want to automate things)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;3. Publishing to ArcGIS for Server: not possible manually or with python. &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;Is this true? If my aim is to automate things and publish&amp;nbsp;using python to Portal or ArcGIS Server, is there any way around this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;Hugo&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2018 06:15:14 GMT</pubDate>
    <dc:creator>HugoBouckaert1</dc:creator>
    <dc:date>2018-07-02T06:15:14Z</dc:date>
    <item>
      <title>Using python in ArcGIS Pro to upload a map service to ArcGIS for Server or Portal</title>
      <link>https://community.esri.com/t5/python-questions/using-python-in-arcgis-pro-to-upload-a-map-service/m-p/312110#M24292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks to me that if you only have ArcGIS Pro on your desktop, you can no longer upload a map service to ArcGIS Server. The options for publishing to Portal for ArcGIS are also limited.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly if you want to load and configure a map manually in ArcGIS Pro you can only publish to Portal or to ArcGIS Online, because in ArcGIS Pro you cannot make a direct connection to ArcGIS for Server any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to publish a map using python, the old &lt;SPAN style="background-color: #ffffff;"&gt;arcpy.mapping.CreateMapSDDraft in ArcMap is now replaced by &lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;arcpy.mp.CreateWebLayerSDDraft. However, firstly you have to access a Project from python (use &lt;SPAN&gt;arcpy.mp.ArcGISProject to set up your environment)&amp;nbsp;&lt;/SPAN&gt;which in a shared setup you may not want to do. Secondly &lt;SPAN&gt;CreateWebLayerSDDraft only allows you to&amp;nbsp;&lt;/SPAN&gt;publish to ArcGIS Online, i.e. you cannot even create an sddraft that is configured to publish to your own internal Portal. Strange!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;&lt;SPAN style="color: #595959;"&gt;So the first question is, how are people going to publish to ArcGIS for Server if they only have ArcGIS Pro on their desktop? &amp;nbsp;In ArcGIS Pro, you cannot connect to ArcGIS for Server for "manual" publishing&amp;nbsp;from a map, and neither can you connect to&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #595959;"&gt;ArcGIS for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #595959;"&gt;Server with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;arcpy.mp.CreateWebLayerSDDraft to use python for publishing. I had a look at the arcpy.sharing functionality, but there also, publishing is limited to Portal or ArcGIS Online. Is this an oversight?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #595959;"&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;Now imagine I forget about publishing to ArcGIS for Server, it seems I am also limited in publishing to Portal. Say I want to use python in ArcGIS Pro to publish a map tile service directly to Portal for ArcGIS. This cannot be done because creating an SDDraft in python can only connect to ArcGIS Online. I have tried all options, but to me it looks like this is no longer possible. So in ArcGIS Pro my options are limited as follows: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;1. Use python: can &lt;EM&gt;only&lt;/EM&gt; publish to ArcGIS Online&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;2. Manually publishing from a map: can publish to Portal and ArcGIS Online (but I want to automate things)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;3. Publishing to ArcGIS for Server: not possible manually or with python. &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;Is this true? If my aim is to automate things and publish&amp;nbsp;using python to Portal or ArcGIS Server, is there any way around this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;Hugo&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959;"&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 06:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-in-arcgis-pro-to-upload-a-map-service/m-p/312110#M24292</guid>
      <dc:creator>HugoBouckaert1</dc:creator>
      <dc:date>2018-07-02T06:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using python in ArcGIS Pro to upload a map service to ArcGIS for Server or Portal</title>
      <link>https://community.esri.com/t5/python-questions/using-python-in-arcgis-pro-to-upload-a-map-service/m-p/312111#M24293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't do the web thing... but new to 2.2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/get-started/whats-new-in-arcgis-pro.htm"&gt;whats-new-in-arcgis-pro&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a new &lt;STRONG&gt;Share your work&lt;/STRONG&gt; section at the bottom of that link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/sharing/introduction-to-arcpy-sharing.htm"&gt;introduction-to-arcpy-sharing&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/sharing/featuresharingdraft-class.htm"&gt;FeatureSharingDraft class&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plus more in that general area if it makes sense to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 08:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-in-arcgis-pro-to-upload-a-map-service/m-p/312111#M24293</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-02T08:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using python in ArcGIS Pro to upload a map service to ArcGIS for Server or Portal</title>
      <link>https://community.esri.com/t5/python-questions/using-python-in-arcgis-pro-to-upload-a-map-service/m-p/312112#M24294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue has been raised and discussed quite a bit since ArcGIS Pro was released.&amp;nbsp; &lt;A href="https://community.esri.com/ideas/12258-arcgis-pro-publish-services-to-arcgis-server"&gt;ArcGIS Pro Publish Services To ArcGIS Server&lt;/A&gt; is now 2-years old, and its status is "In Product Plan."&amp;nbsp; Unfortunately, "In Product Plan" doesn't give any insight into when, but it does tell you it isn't available now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Dan already pointed out, your comment about &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcpy.mp.CreateWebLayerSDDraft&lt;/SPAN&gt; is correct, but that function is now deprecated/legacy since the &lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/sharing/featuresharingdraft-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/sharing/featuresharingdraft-class.htm"&gt;FeatureSharingDraft—Sharing module | ArcGIS Desktop&lt;/A&gt; , &lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/sharing/mapimagesharingdraft-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/sharing/mapimagesharingdraft-class.htm"&gt;MapImageSharingDraft—Sharing module | ArcGIS Desktop&lt;/A&gt; , and &lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/sharing/tilesharingdraft-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/sharing/tilesharingdraft-class.htm"&gt;TileSharingDraft—Sharing module | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; were introduced in ArcGIS Pro 2.2.&amp;nbsp; The new classes support publishing to ArcGIS Online and Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of moving forward, I encourage you to vote for the above idea if you haven't already and also reach out to your Esri account manager to raise your needs of being able to publish directly to ArcGIS Server from ArcGIS Pro.&amp;nbsp; Also, upgrade to ArcGIS Pro 2.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-in-arcgis-pro-to-upload-a-map-service/m-p/312112#M24294</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-07-02T14:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using python in ArcGIS Pro to upload a map service to ArcGIS for Server or Portal</title>
      <link>https://community.esri.com/t5/python-questions/using-python-in-arcgis-pro-to-upload-a-map-service/m-p/312113#M24295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hot off the press … Esri is saying "first half of 2019". This is from the 2018 UC Q&amp;amp;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 20:28:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-in-arcgis-pro-to-upload-a-map-service/m-p/312113#M24295</guid>
      <dc:creator>Waan</dc:creator>
      <dc:date>2018-07-02T20:28:33Z</dc:date>
    </item>
  </channel>
</rss>

