Skip to content

Instantly share code, notes, and snippets.

@briandenicola
Created May 7, 2020 15:07
Show Gist options
  • Save briandenicola/4c0d23161448130841c563f0ea35a936 to your computer and use it in GitHub Desktop.
Save briandenicola/4c0d23161448130841c563f0ea35a936 to your computer and use it in GitHub Desktop.
A quick and dirty function to help with Azure APIM with Invoke-RestMethod
function New-APIMHeader {
param(
[string] $key
)
$header = @{}
$header.Add('Ocp-Apim-Subscription-Key', $Key)
return $header
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment