<?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 Re: Python script using an MXD to publish Map Service in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-using-an-mxd-to-publish-map-service/m-p/594222#M46540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to write your own script, you'll need to use the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/createmapsddraft.htm"&gt;Create Map SD Draft&lt;/A&gt; tool, &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/server-toolbox/stage-service.htm"&gt;Stage Service&lt;/A&gt; tool, and &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/server-toolbox/upload-service-definition.htm"&gt;Upload Service Definition&lt;/A&gt; tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2017 20:30:45 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2017-11-03T20:30:45Z</dc:date>
    <item>
      <title>Python script using an MXD to publish Map Service</title>
      <link>https://community.esri.com/t5/python-questions/python-script-using-an-mxd-to-publish-map-service/m-p/594219#M46537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this information is out there but I guess I'm not searching for it Correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for an example using a python script to publish a map service using an .mxd file.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 21:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-using-an-mxd-to-publish-map-service/m-p/594219#M46537</guid>
      <dc:creator>LarryAdgate</dc:creator>
      <dc:date>2017-11-01T21:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python script using an MXD to publish Map Service</title>
      <link>https://community.esri.com/t5/python-questions/python-script-using-an-mxd-to-publish-map-service/m-p/594220#M46538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to look at the ArcGIS Server Administrator toolkit&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340" title="http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340"&gt;http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340&lt;/A&gt;&amp;nbsp;&amp;nbsp; which has&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp; ...tools for starting and stopping services, modifying log settings, registering server object extensions (SOEs), and &lt;EM&gt;publishing services from service definition files.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;old blog&amp;nbsp; &lt;A class="link-titled" href="https://blogs.esri.com/esri/arcgis/2012/07/05/downloadable-tools-for-arcgis-server-administration/" title="https://blogs.esri.com/esri/arcgis/2012/07/05/downloadable-tools-for-arcgis-server-administration/"&gt;Downloadable tools for ArcGIS Server administration | ArcGIS Blog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(The tools are a starting point, although you may need to update for your purposes.&amp;nbsp; For example, I have modified some of the scripts to do things like find &lt;EM&gt;running services that use datasource X.gdb&lt;/EM&gt;&amp;nbsp; then stop those services, replace the fgdb, then start just those back up (instead of trying to remember which you stopped).&amp;nbsp;&amp;nbsp;&amp;nbsp; There is a never beta version of those tools..but I don't have the link handy.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check out&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm"&gt;CreateMapSDDraft—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/publishmsdtoserver.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/publishmsdtoserver.htm"&gt;PublishMSDToServer—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and some of the related links to get started.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 22:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-using-an-mxd-to-publish-map-service/m-p/594220#M46538</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-11-01T22:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python script using an MXD to publish Map Service</title>
      <link>https://community.esri.com/t5/python-questions/python-script-using-an-mxd-to-publish-map-service/m-p/594221#M46539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An old question on Geonet:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/70855"&gt;How to publish a feature service to ArcGIS Online from an mxd USING PYTHON?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Which leads to this blog post (last comment suggests code -on GitHub- can be made to work with 10.5):&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.esri.com/esri/arcgis/2014/01/24/updating-your-hosted-feature-service-for-10-2/"&gt;Updating your hosted feature service for 10.2&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 03:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-using-an-mxd-to-publish-map-service/m-p/594221#M46539</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2017-11-02T03:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python script using an MXD to publish Map Service</title>
      <link>https://community.esri.com/t5/python-questions/python-script-using-an-mxd-to-publish-map-service/m-p/594222#M46540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to write your own script, you'll need to use the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/createmapsddraft.htm"&gt;Create Map SD Draft&lt;/A&gt; tool, &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/server-toolbox/stage-service.htm"&gt;Stage Service&lt;/A&gt; tool, and &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/server-toolbox/upload-service-definition.htm"&gt;Upload Service Definition&lt;/A&gt; tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 20:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-using-an-mxd-to-publish-map-service/m-p/594222#M46540</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-11-03T20:30:45Z</dc:date>
    </item>
  </channel>
</rss>

