chelnak
4/5/2017 - 8:56 AM

Escape URI String with PowerShell

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