Skip to content

Instantly share code, notes, and snippets.

@aammirmirza
aammirmirza / Demos.ps1
Created November 22, 2019 06:18 — forked from tegaaa/Demos.ps1
function GetUrl() {
param(
[string]$orgUrl,
[hashtable]$header,
[string]$AreaId
)
# Build the URL for calling the org-level Resource Areas REST API for the RM APIs
$orgResourceAreasUrl = [string]::Format("{0}/_apis/resourceAreas/{1}?api-preview=5.0-preview.1", $orgUrl, $AreaId)