<?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: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856644#M102308</link>
    <description>&lt;P&gt;I did this originally on 2.5.2, should still be the same w/ 3.1.2, but let me verify.&amp;nbsp; I could also have some logic problems as I really didn't run this code a whole lot.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 17:37:44 GMT</pubDate>
    <dc:creator>Zsoldier</dc:creator>
    <dc:date>2021-07-09T17:37:44Z</dc:date>
    <item>
      <title>NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856189#M102231</link>
      <description>&lt;P&gt;I have a use case for a script to update Segment Profiles on a Segment - the use case is basically the Segments are spun out as Cloud Director networks, one of the vms in the vapp is a DHCP server and i need to change the &lt;SPAN&gt;Segment Security Profile to one which allows DHCP traffic&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks to Rudi there is a powercli script to do this (&lt;A href="https://rudimartinsen.com/2020/04/13/change-nsx-t-switch-profiles-with-powercli/#powershell" target="_blank" rel="noopener"&gt;Change NSX-T Switch Profiles with PowerCLI | rudimartinsen.com&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem I have is when Cloud Director has the Segments created they are created with the Protection set to Require_Override in order for the script to work they need to be set to Not_Protected - see note at the bottom of Rudi's post&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way through powercli to change this from Require_Override to Not_Protected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 18:07:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856189#M102231</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-07T18:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856203#M102232</link>
      <description>&lt;P&gt;Is it possible in vCD to change a segment's security profile that it maps to?&amp;nbsp; If so, you could create a new profile and simply have vCD point to that new one for your segment.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 17:36:56 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856203#M102232</guid>
      <dc:creator>Zsoldier</dc:creator>
      <dc:date>2021-07-07T17:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856204#M102233</link>
      <description>&lt;P&gt;I dont think its possible&amp;nbsp; through Cloud Director, it doesn't expose segments or segment profiles anywhere, my understanding is it just requests a segment and NSX-T provides one with all defaults,&lt;/P&gt;&lt;P&gt;We can change in the UI of NSX-T - but we have to do it each time we deploy a vapp, previously in NSX-V environments we done something similar and the way we automate it is through powercli tagged to Cloud Director through the Service Library,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the ideal situation for me would be one of the below&lt;/P&gt;&lt;P&gt;a) Some powercli way to change from&amp;nbsp;REQUIRE_OVERRIDE to NOT_PROTECTED&lt;/P&gt;&lt;P&gt;b) To change Segments that are created from Cloud Director so they all show NOT_PROTECTED as a default&lt;/P&gt;&lt;P&gt;c) To select the Segment Profile based on the name of the segment, maybe this is something that can be done through tags - I haven't checked yet&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 18:07:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856204#M102233</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-07T18:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856417#M102257</link>
      <description>&lt;P&gt;You cannot change the require_override property from what I'm aware of.&amp;nbsp; You can however pass in an 'override' header in your call to change the default segment security profile config to what you want your default to be.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;X-Allow-Overwrite=true (listed in NSX-T public API docs)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm not a fan of changing system defaults since you are likely to cause other issues by doing so.&amp;nbsp; If DHCP is the issue, I'd recommend utilizing NSX-T's DHCP services or setup a DHCP relay in NSX-T as the segment security profile doesn't affect those.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 16:04:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856417#M102257</guid>
      <dc:creator>Zsoldier</dc:creator>
      <dc:date>2021-07-08T16:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856431#M102258</link>
      <description>&lt;P&gt;Sure, but can you pass that through powercli as far as I know thats just through the api - but I could be wrong - if you can use it through powercli then great that should fix my issue.&lt;/P&gt;&lt;P&gt;Its just a bit annoying that I can change the setting through the ui with no issue, I have the powercli&amp;nbsp; syntax to make the same change but powercli isnt allowed to change it - surely when the same users/permissions are used the logic should be the same whether run in the ui or from powercli. But powercli seems to have this added layer of security which leads to serious limitations as to what you can use it for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways thats just me moaning - but it is a pain that when I was using V for the network backing in Cloud Director i could do this type of stuff in powercli without any issue, now tasks that were automated have to be run manually each time the segment is created, which in Cloud Director means anytime the vAPP is booted.&lt;/P&gt;&lt;P&gt;I get what you are saying about system defaults, but these are user configurable parameters intended to be set depending on the requirements of the segment - dhcp is one example, adding a vlan to a segment that is acting as a trunk is probably a better example and has the same issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you create the segment in Powercli you actually can change this, its just when created elsewhere (from Cloud Director in this example) you cant.&lt;/P&gt;&lt;P&gt;Anyway thanks for the feedback, I suspect I will need to find a different way of automating this or just add it as a manual task which would be a shame.&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 17:25:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856431#M102258</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-08T17:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856433#M102259</link>
      <description>&lt;P&gt;Not with the nsx-t powercli module.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can do it through UI, that means it's not protected object, so I'm a bit confused what you are changing in UI that you are being prevented from via powercli.&lt;/P&gt;&lt;P&gt;Can you post some screenshots on what exactly you are referring to?&amp;nbsp; Working w/ Powershell and Invoke-RestMethod is honestly much less frustrating , in my opinion, than working w/ the NSX-T cmdlets.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 17:37:56 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856433#M102259</guid>
      <dc:creator>Zsoldier</dc:creator>
      <dc:date>2021-07-08T17:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856445#M102261</link>
      <description>&lt;P&gt;Yeah, I think I need to make myself more familiar am struggling a bit with the change, we are basically slowly migrating from Cloud Director with NSX-V backing NSX-T - so I definitely need to spend some time getting use to the Invoke-RestMethod&lt;/P&gt;&lt;P&gt;In the image 1, you see the segment profiles towards the bottom, currently set to the defaults, if i click edit on the segment and go down to the Segment Security I see in the drop down a second choice (one i manually created) called&amp;nbsp;allowdhcp-segment-security-profile - the only difference between this and the default one is that DHCP Server Block is turned off - in the ui here it allows me to change and ultimately the dhcp process between client and server Discover-&amp;gt;Offer-&amp;gt;Prequest-&amp;gt;Pack is not blocked on the segment once i change- if i don't change - the server side gets blocked and dhcp doesn't work&lt;/P&gt;&lt;P&gt;Largely based on Rudi's sample (&lt;A href="https://rudimartinsen.com/2020/04/13/change-nsx-t-switch-profiles-with-powercli/#powershell" target="_blank"&gt;Change NSX-T Switch Profiles with PowerCLI | rudimartinsen.com&lt;/A&gt;) I have the below script&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;Get-VICredentialStoreItem -File c:\scriptserver\utils\nsxcreds.xml | %{Connect-NsxtServer -Server $_.host -User $_.user -Password $_.password}&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$LogicalNetwork = '0-Management-192_168_0_X-77999120-a800-4455-a088-3cfe042c666b'&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$ProfileType = 'SwitchSecuritySwitchingProfile'&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$ProfileName = 'allowdhcp-segment-security-profile'&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;#Get the new profile&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$nestProfile = (Get-NsxtService -Name "com.vmware.nsx.switching_profiles").list().results.Where({$_.resource_type -eq $ProfileType -and $_.display_name -eq $ProfileName})&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;if(!$nestProfile){&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;throw "No profile found!"&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;#Get the logical switch&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$sw = (Get-NsxtService "com.vmware.nsx.logical_switches").list().results.Where({$_.display_name -eq $LogicalNetwork})[0]&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;if(!$sw){&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;throw "No logical switch found!"&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;#Get the current profiles and get index of profile type&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$swProfiles = $sw.switching_profile_ids&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$profIndex = 0;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;for($i=0;$i -le $swProfiles.count;$i++){&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;if($swProfiles[$i].key -eq $ProfileType){&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$profIndex = $i&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;break&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;#Set new value&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$chgProfile = $swProfiles[$profIndex]&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$chgProfile.value = $nestProfile.id&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;#Change existing switch&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$swProfiles[$profIndex] = $chgProfile&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;$sw.switching_profile_ids = $swProfiles&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;#Update switch&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;(Get-NsxtService -Name "com.vmware.nsx.logical_switches").update($sw.id,$sw)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;When run I get the error&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;A server error occurred: 'com.vmware.vapi.std.errors.invalid_request': . Check $Error[0].Exception.ServerError for more details.&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;At C:\scriptserver\manualscripts\NSX-T\ListSwitches.ps1:41 char:1&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;+ (Get-NsxtService -Name "com.vmware.nsx.logical_switches").update($sw. ...&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;+ CategoryInfo : OperationStopped: (:) [], CisServerException&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;+ FullyQualifiedErrorId : VMware.VimAutomation.Cis.Core.Types.V1.CisServerException&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;PS C:\scriptserver\manualscripts\NSX-T&amp;gt; $Error[0].Exception.ServerError&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;At this point I reread Rudi's article and noticed the note towards the end mentioning the&amp;nbsp;protection - my assumption &lt;U&gt;but I could be wrong&lt;/U&gt; is this is why I hit the error&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;There is one very important note on the update of switch resources through the API and Powershell. Segments, as they are called when created in the Networking UI or through the new Policy API, will have the protection property set to&amp;nbsp;&lt;EM&gt;REQUIRE_OVERRIDE&lt;/EM&gt;&amp;nbsp;by default, whereas switches created in the Advanced view or through the Management API will have their protection set to&amp;nbsp;&lt;EM&gt;NOT_PROTECTED&lt;/EM&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;My segments are created from Cloud Director, so I dont really have any control over which view they are created in - but when I check it does appear they are set to REQUIRE_OVERRIDE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;id display_name protection&lt;BR /&gt;-- ------------ ----------&lt;BR /&gt;0095a75e-03dd-4df7-843e-0f4ffa6b7858 0-Management-192_168_0_X-77999120-a800-4455-a088-3cfe042c666b REQUIRE_OVERRIDE&lt;BR /&gt;5255907b-98db-4ca1-b8e1-b9b8fd45e785 100-Trunk-192_168_100_X-a5c15778-291e-4073-ac8e-1700e0a9cbca REQUIRE_OVERRIDE&lt;BR /&gt;fe0aa1e8-f177-4a1f-b1c2-cdcedde39197 254-Access-192_168_254_X-091b1461-b594-4323-a23f-a7d54e3cad0a REQUIRE_OVERRIDE&lt;BR /&gt;fb93f2ce-ab8e-407e-a4e2-da286783efde external-fabric-a-seg REQUIRE_OVERRIDE&lt;BR /&gt;dcaaefb6-9027-4965-b1c3-2e423faab146 external-fabric-b-seg REQUIRE_OVERRIDE&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Help&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;----&lt;BR /&gt;@{Documentation=The InvalidRequest error indicates that the request is malformed in such a way that the server is unable to process it. ...&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;</description>
      <pubDate>Thu, 08 Jul 2021 18:24:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856445#M102261</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-08T18:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856453#M102267</link>
      <description>&lt;P&gt;Having issues replying - it keeps getting marked as spam for some reason not sure if its due to the image or the content of the description of whats happening which contains code snippets - ill try again tomorrow&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 18:51:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856453#M102267</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-08T18:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856465#M102273</link>
      <description>&lt;P&gt;Based on running Rudi's script which is here&amp;nbsp;&lt;A href="https://github.com/rumart/ps/blob/master/nsx/change_switchprofile_nsxt.ps1" target="_blank"&gt;ps/change_switchprofile_nsxt.ps1 at master · rumart/ps · GitHub&lt;/A&gt;&amp;nbsp;- I get the error attached&lt;/P&gt;&lt;P&gt;If i go into the ui and manually change the segment profile for that logical network&amp;nbsp; to&amp;nbsp;'allowdhcp-segment-security-profile' it works fine&lt;/P&gt;&lt;P&gt;if i check the protection state it shows the REQUIRE_OVERRIDE - so my assumption is this is the cause of the error&lt;/P&gt;&lt;P&gt;id display_name protection&lt;BR /&gt;-- ------------ ----------&lt;BR /&gt;0095a75e-03dd-4df7-843e-0f4ffa6b7858 0-Management-192_168_0_X-77999120-a800-4455-a088-3cfe042c666b REQUIRE_OVERRIDE&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 19:25:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856465#M102273</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-08T19:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856466#M102274</link>
      <description>&lt;P&gt;Attached is the image with the setting changed in the UI - apologies for the short notes - I had done longer write ups but I suspect as they had code snippets they were getting blocked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 19:31:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856466#M102274</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-08T19:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856482#M102277</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/5445974"&gt;@WJCon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Attached is the image with the setting changed in the UI - apologies for the short notes - I had done longer write ups but I suspect as they had code snippets they were getting blocked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Code can trigger the antispam mechanism as can the inclusion of links.. you did both.&lt;BR /&gt;Please next time, just report it, one of the moderators will unblock it, trying to repost it 6 times just gives us a lot of work (and for the record, we have no saying in that antispam filter, just volunteer work &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@8D3AC78033E090809829B1C8262B7619/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt; )&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 23:57:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856482#M102277</guid>
      <dc:creator>wila</dc:creator>
      <dc:date>2021-07-08T23:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856491#M102278</link>
      <description>&lt;P&gt;If you are changing the segment profile on an existing segment, I've written code to do that and it shouldn't need override, but you can include it if it gives you guff.&lt;/P&gt;&lt;P&gt;&lt;A href="https://tech.zsoldier.com/2020/05/powershell-changing-nsx-t-segment.html" target="_blank"&gt;Powershell: Changing NSX-T Segment Profiles enmasse. (zsoldier.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 02:33:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856491#M102278</guid>
      <dc:creator>Zsoldier</dc:creator>
      <dc:date>2021-07-09T02:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856495#M102279</link>
      <description>&lt;P&gt;You don't need the override switch as long as you are modifying via the policy API, which my code does.&amp;nbsp; Hence another reason I loathe the nsx-t powercli module.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 03:07:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856495#M102279</guid>
      <dc:creator>Zsoldier</dc:creator>
      <dc:date>2021-07-09T03:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856519#M102282</link>
      <description>&lt;P&gt;This looks like exactly what I need, I'll give it a go today -&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 07:59:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856519#M102282</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-09T07:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856520#M102283</link>
      <description>&lt;P&gt;Understood Wila, I'll know for next time - thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 08:47:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856520#M102283</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-09T08:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856563#M102288</link>
      <description>&lt;P&gt;Chris do you know if something has changed with parameters on invoke-restmethod, it seems to not like the -Authentication parameter&lt;/P&gt;&lt;P&gt;There was also an error on the -SkipCertificationCheck but I have been able to get past that by trusting the certificate&lt;/P&gt;&lt;P&gt;I&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 10:27:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856563#M102288</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-09T10:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856589#M102295</link>
      <description>&lt;P&gt;Nevermind I can do this by building up the header instead -something similar to the below - i'll let you know how it goes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$credentials = Get-Credential&lt;BR /&gt;$auth&amp;nbsp;=&amp;nbsp;$credentials.UserName&amp;nbsp;+&amp;nbsp;':'&amp;nbsp;+&amp;nbsp;$credentials.GetNetworkCredential().Password&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;$Encoded&amp;nbsp;=&amp;nbsp;[System.Text.Encoding]::UTF8.GetBytes($auth)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;$auth64&amp;nbsp;=&amp;nbsp;[System.Convert]::ToBase64String($Encoded)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$header = @{}&lt;BR /&gt;$header.add("Accept","application/json")&lt;BR /&gt;$header.add("Content-Type","application/json")&lt;BR /&gt;$header.add("Authorization",&amp;nbsp;"Basic&amp;nbsp;$auth64")&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 11:49:01 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856589#M102295</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-09T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856612#M102301</link>
      <description>&lt;P&gt;Make sure you are running Powershell Core (aka Powershell 7).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/PowerShell/PowerShell/releases/tag/v7.1.3" target="_blank"&gt;Release v7.1.3 Release of PowerShell · PowerShell/PowerShell (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/PowerShell-7.1.3-win-x64.msi" target="_blank"&gt;https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/PowerShell-7.1.3-win-x64.msi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/PowerShell-7.1.3-win-x86.msi" target="_blank"&gt;https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/PowerShell-7.1.3-win-x86.msi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:27:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856612#M102301</guid>
      <dc:creator>Zsoldier</dc:creator>
      <dc:date>2021-07-09T14:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856636#M102306</link>
      <description>&lt;P&gt;Hey Chris,&lt;/P&gt;&lt;P&gt;First of all thanks for the patience -&amp;nbsp;&lt;/P&gt;&lt;P&gt;This partially works for me,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically it works if the Segment has Segment Profiles that aren't the Default, so lets say I create some other profiles change the segment to use these profiles then run the script it will change them back to the desired profiles.&lt;/P&gt;&lt;P&gt;But if the Segment is just using the default profiles then I get the error attached&lt;/P&gt;&lt;P&gt;I believe this is due to the lines where we are trying to get the value for $Binding - when the Segment has default values then the return of the get is empty, it only seems to have values if their is a non default profile in use&lt;/P&gt;&lt;P&gt;$Binding = Invoke-restmethod -Uri ($base_url + $segmentendpoint + "/" + $segment.id + $endpoint) -Method GET -Credential $Credential -SkipCertificateCheck:$skipcertcheck -Authentication:$AuthMethod&lt;/P&gt;&lt;P&gt;I think this then results in&amp;nbsp;$binding.results.path having a null value&lt;/P&gt;&lt;P&gt;I think the patch api call should still work - documentation says if it doesn't exist it should create it, but for some reason is falling over for me.&lt;/P&gt;&lt;P&gt;If you run this against a Segment with all default profiles does this work for you - and are you using NSX-T 3.1.2?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jul 2021 16:52:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856636#M102306</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-09T16:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: NSX-T 3.1.2 Update Logical Switch update REQUIRE_OVERRIDE</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856640#M102307</link>
      <description>&lt;P&gt;One additional note is that if you change it from the default and then change it back it still works. Its like the first change populates the info that is retrieved in the get that populates the $binding values&lt;/P&gt;&lt;P&gt;So the only time it doesnt work for me is on a fresh segment that has never been changed - i still dont understand why the patch doesnt just create the required entry though&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:17:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/NSX-T-3-1-2-Update-Logical-Switch-update-REQUIRE-OVERRIDE/m-p/2856640#M102307</guid>
      <dc:creator>WJCon</dc:creator>
      <dc:date>2021-07-09T17:17:53Z</dc:date>
    </item>
  </channel>
</rss>

