Making PowerShell Based Azure Functions to Produce HTML Outputs

Over the last few weeks, I’ve been working with my MVP buddy Alex Verkinderen (@AlexVerkinderen) on some Azure Function related stuff. We have both written few PowerShell based functions that output a HTML page. These functions use the ConvertTo-HTML cmdlet to produce the HTML output. For example, here’s a simple one that  list 2 cars in a HTML table: $Cars = @() #Car #1 $CarProperties = @{ ‘Make’ = ‘BMW’ ‘Colour’ = ‘Black’ ‘RegistrationNumber’ = ‘ABC123’ } $Cars += New-Object psobject -Property $CarProperties #Car #2 $CarProperties = @{ ‘Make’ = ‘Toyota’ ‘Colour’ = ‘Red’ ‘RegistrationNumber’ = ‘DEF456’ } $Cars +=

Continue reading
%d bloggers like this: