<?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 Publishing Services through PowerShell DSC in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-services-through-powershell-dsc/m-p/1029951#M29532</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have to publish a GIS service through PowerShell. I found a sample configuration for the same from-&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-powershell-dsc/blob/master/SampleConfigs/v3/PublishGISService.json" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-powershell-dsc/blob/master/SampleConfigs/v3/PublishGISService.json&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I am not getting few things that,&amp;nbsp; what should we have to write-in placeholders like:-&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;CertificateFile&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;Thumbprint&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;PortalContext&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;ServerContext&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;PasswordFile&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;6)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;PathToItemInfoFile&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help me with the above placeholders.&lt;/P&gt;&lt;P&gt;Secondly, what command should I run on PowerShell to publish PublishGISService.json?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OR&lt;/P&gt;&lt;P&gt;I have to merge PublishGISService.json with&amp;nbsp;BaseDeployment-SingleMachine.json to publish the services.&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 12:24:13 GMT</pubDate>
    <dc:creator>AYUSHYADAV</dc:creator>
    <dc:date>2021-02-24T12:24:13Z</dc:date>
    <item>
      <title>Publishing Services through PowerShell DSC</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-services-through-powershell-dsc/m-p/1029951#M29532</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have to publish a GIS service through PowerShell. I found a sample configuration for the same from-&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-powershell-dsc/blob/master/SampleConfigs/v3/PublishGISService.json" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-powershell-dsc/blob/master/SampleConfigs/v3/PublishGISService.json&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I am not getting few things that,&amp;nbsp; what should we have to write-in placeholders like:-&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;CertificateFile&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;Thumbprint&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;PortalContext&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;ServerContext&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;PasswordFile&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;6)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;PathToItemInfoFile&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help me with the above placeholders.&lt;/P&gt;&lt;P&gt;Secondly, what command should I run on PowerShell to publish PublishGISService.json?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OR&lt;/P&gt;&lt;P&gt;I have to merge PublishGISService.json with&amp;nbsp;BaseDeployment-SingleMachine.json to publish the services.&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 12:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-services-through-powershell-dsc/m-p/1029951#M29532</guid>
      <dc:creator>AYUSHYADAV</dc:creator>
      <dc:date>2021-02-24T12:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Services through PowerShell DSC</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-services-through-powershell-dsc/m-p/1036167#M29679</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I was able to connect to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/23815"&gt;@CameronKroeker&lt;/a&gt;&amp;nbsp;who helped me get some details on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;CertificateFile&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;" - The location of the .cer file of the ArcGIS Server host. (This is not the .pfx or .cer with a private key, so no password is required)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;Thumbprint&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;" -This can be found by opening the certificate details pane (open ArcGIS Server host, click on the lock icon, go to Details and scroll all the way down.)&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thumbprint.jpg" style="width: 470px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8362iAD74D38905F954EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="thumbprint.jpg" alt="thumbprint.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;PortalContext&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: - This is the alias of the web adaptor for portal (&lt;A href="https://esri.com/" target="_blank" rel="noopener"&gt;https://esri.com/&lt;/A&gt;&lt;STRONG&gt;portal)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;ServerContext&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:Same as above but for ArcGIS Server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;PasswordFile&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;" - This is a path to the encrypted password .txt file. More detaisl on how to generate this can be found here:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-powershell-dsc/wiki/V3.-Password-Files-and-Encrypted-Deployments" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-powershell-dsc/wiki/V3.-Password-Files-and-Encrypted-Deployments&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;6)&amp;nbsp;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;PathToItemInfoFile&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pl-pds"&gt;" - &lt;STRONG&gt;This can be left blank&amp;nbsp;&lt;/STRONG&gt;This comes straight from the API, created via&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/iteminfo-upload.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/enterprise-administration/server/iteminfo-upload.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;As for your last question, you are unable to merge both the configuration and publish actions because they invoke different methods.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;To Invoke the publish method:&amp;nbsp;Invoke-PublishService -&lt;EM&gt;ConfigurationParameterFile.json&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;Versus the Configuration Method:&amp;nbsp;Invoke-ArcGISConfiguration -Mode Install -&lt;EM&gt;ConfigurationParameterFile my.json&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have given this feedback to Mr. Kroeker, who will update the current sample to include these remarks to make it a bit easier to use. Additionally, he will also ensure that the placeholders get included in the wiki.&lt;/P&gt;&lt;P&gt;If you have any issues, please feel free to ask, or better yet post in the github community.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 23:14:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-services-through-powershell-dsc/m-p/1036167#M29679</guid>
      <dc:creator>JonEmch</dc:creator>
      <dc:date>2021-03-12T23:14:11Z</dc:date>
    </item>
  </channel>
</rss>

