Samples/CreateReleaseAnnotation.ps1

Import-Module ./AzAiUtil

# Sample usage .\CreateReleaseAnnotation.ps1
# -applicationId "<appId>" -apiKey "<apiKey>"
# -releaseName "<releaseName>"
# -releaseProperties @{"ReleaseDescription"="Release with annotation";"TriggerBy"="John Doe"}
# -eventDateTime "2016-07-07T06:23:44"
param(
    [parameter(Mandatory = $true)][string]$applicationId,
    [parameter(Mandatory = $true)][string]$apiKey,
    [parameter(Mandatory = $true)][string]$releaseName,
    [parameter(Mandatory = $false)]$releaseProperties,
    [parameter(Mandatory = $false)][DateTime]$eventDateTime
)


CreateReleaseAnnotation $applicationId $apiKey $releaseName $releaseProperties $eventDateTime