<?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: How to automate publishing of image service to portal using a raster? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-automate-publishing-of-image-service-to/m-p/1253856#M66751</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/469496"&gt;@RehanChaudhary&lt;/a&gt;&amp;nbsp;I am trying to do the same thing, but my tile cache is in an Azure S3 storage account.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 15:23:58 GMT</pubDate>
    <dc:creator>ABishop</dc:creator>
    <dc:date>2023-02-01T15:23:58Z</dc:date>
    <item>
      <title>How to automate publishing of image service to portal using a raster?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-publishing-of-image-service-to/m-p/1073172#M61504</link>
      <description>&lt;P&gt;&lt;SPAN&gt;i am trying to automate the publishing of image service so that a user can directly publish a service by using a python script and having their raster file as input using the first URL linked below. I am working on Jupyter Notebook on Arcgis portal and i am having issue on creating a Connection file which is required for create the SDdraft. it throws up a runtime error. Can i use the following code with Python 3 jupyter instance and how can i automate the process without involving the Desktop solutions of ESRI? How can i fix the runtime error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;acrcgissripting._createGISServerConnectionFile("PUBLISH_GIS_SERVICES", "/arcigs/home", "test.ags", "https://somearcgisserver", "ARCGIS_SERVER", True, "/arcgis/home", "username", "password","SAVE_USERNAME")

exp_layer = '/arcgis/home/scratch.gdb/temperature'
sddraft= "/arcgis/home/test.sddraft"
Name="test"
arcpy.CreateImageSDDraft(exp_layer, sddraft, Name,"test.ags" 'ARCGIS_SERVER', None, False, None, "Ortho Images","ortho images,image service")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here are some of the links related to above code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Code for automization&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://enterprise.arcgis.com/en/server/latest/develop/linux/example-publish-an-image-service-from-a-folder-of-images.htm" rel="nofollow noreferrer" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/develop/linux/example-publish-an-image-service-from-a-folder-of-images.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CreateImageSDDraft&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/createimagesddraft.htm" rel="nofollow noreferrer" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/createimagesddraft.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Create GIS Server Connection file&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/how-to-create-an-arcgis-server-connection-file-with-the-python-3/m-p/1032848" rel="nofollow noreferrer" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/how-to-create-an-arcgis-server-connection-file-with-the-python-3/m-p/1032848&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 13:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-publishing-of-image-service-to/m-p/1073172#M61504</guid>
      <dc:creator>RehanChaudhary</dc:creator>
      <dc:date>2021-06-28T13:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate publishing of image service to portal using a raster?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-publishing-of-image-service-to/m-p/1253856#M66751</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/469496"&gt;@RehanChaudhary&lt;/a&gt;&amp;nbsp;I am trying to do the same thing, but my tile cache is in an Azure S3 storage account.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 15:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-publishing-of-image-service-to/m-p/1253856#M66751</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2023-02-01T15:23:58Z</dc:date>
    </item>
  </channel>
</rss>

