Skip to content

Instantly share code, notes, and snippets.

@chelnak
Last active April 5, 2017 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chelnak/3c8f01642c0c4a2beb43d7da5047bc8c to your computer and use it in GitHub Desktop.
Save chelnak/3c8f01642c0c4a2beb43d7da5047bc8c to your computer and use it in GitHub Desktop.
Escape URI String with PowerShell
$EscapedBusinessGroupName = [URI]::EscapeDataString($BusinessGroupName)
$URI = "/identity/api/tenants/$($TenantId)/subtenants?`$filter=name%20eq%20'$($EscapedBusinessGroupName)'"
$Response = Invoke-vRARestMethod -Method GET -URI $URI -Verbose:$VerbosePreference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment