You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Require a query parameter/value as a layer of abstraction/variability. This is not necessary but a) ensures anyone with your function URL has to know a parameter and its possible values, b) allows you to expand the function for multiple values.
$name = $Request.Query.Name
if (-not $name) {
$name = $Request.Body.Name
}
if ($name -eq "Office1") {
$status = [HttpStatusCode]::OK
$body = $Dyn_IP_siteA
}
else {
$status = [HttpStatusCode]::BadRequest
$body = "Bad Request Logged"
}
# Associate values to output bindings by calling 'Push-OutputBinding'.