This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Have to do this first otherwise you get connection dropped errors | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| Invoke-RestMethod -Uri "https://example.com" -Method Post -ContentType 'multipart/form-data' -Body @{ key1 = 'value'; key2 = 'value' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM microsoft/nanoserver | |
| ARG MyArg=MyDefaultValue | |
| # Default cmd.exe shell | |
| RUN echo %MyArg% | |
| SHELL ["powershell"] | |
| # Or with PowerShell |