<?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 Prisma Cloud Remediation - Invalid CLI script in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-remediation-invalid-cli-script/m-p/534683#M908</link>
    <description>&lt;P&gt;In Prisma Cloud SaaS, while creating custom remediation with cli commands, using custom variables or other cli command (such as grep) is not allowed apparently. Considering the following command, what could be the work-around to pass the output of the second gcloud command into the "rules" flag.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following command &lt;SPAN&gt;successfully works on gcloud cli&lt;/SPAN&gt;, however it produces "Invalid CLI script" error on Validation step;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;gcloud compute --project=${account} firewall-rules update ${resourceName} --rules="$(gcloud compute --project=${account} firewall-rules list --filter="${resourceName}" | grep -o 'tcp:[^,]*' | grep -v 'tcp:22' | tr '\n' ',' | sed 's/,$//')"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 09:14:00 GMT</pubDate>
    <dc:creator>EGunay</dc:creator>
    <dc:date>2023-03-16T09:14:00Z</dc:date>
    <item>
      <title>Prisma Cloud Remediation - Invalid CLI script</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-remediation-invalid-cli-script/m-p/534683#M908</link>
      <description>&lt;P&gt;In Prisma Cloud SaaS, while creating custom remediation with cli commands, using custom variables or other cli command (such as grep) is not allowed apparently. Considering the following command, what could be the work-around to pass the output of the second gcloud command into the "rules" flag.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following command &lt;SPAN&gt;successfully works on gcloud cli&lt;/SPAN&gt;, however it produces "Invalid CLI script" error on Validation step;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;gcloud compute --project=${account} firewall-rules update ${resourceName} --rules="$(gcloud compute --project=${account} firewall-rules list --filter="${resourceName}" | grep -o 'tcp:[^,]*' | grep -v 'tcp:22' | tr '\n' ',' | sed 's/,$//')"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:14:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-remediation-invalid-cli-script/m-p/534683#M908</guid>
      <dc:creator>EGunay</dc:creator>
      <dc:date>2023-03-16T09:14:00Z</dc:date>
    </item>
  </channel>
</rss>

