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
| az group create -n webapps-dev-rg -l westus2 | |
| az appservice plan create --name webapps-dev-plan \ | |
| --resource-group webapps-dev-rg \ | |
| --sku s1 \ | |
| --is-linux | |
| az webapp create -g webapps-dev-rg \ | |
| -p webapps-dev-plan \ | |
| -n mp10344884 \ |
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
| [CmdletBinding(DefaultParameterSetName='Version')] | |
| param | |
| ( | |
| [Parameter(ParameterSetName='Latest', Mandatory = $true)] | |
| [Parameter(ParameterSetName='Version', Mandatory = $true)] | |
| [String] | |
| $SaveToPath, | |
| [Parameter(ParameterSetName='Version', Mandatory = $true)] | |
| [String] |
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
| function Test-Something { | |
| [cmdletbinding()] | |
| param( | |
| #Required. Supply something to be tested. | |
| [parameter(Mandatory = $true)][string]$Whatever | |
| ) | |
| Write-Host "$Whatever has been tested OK." | |
| } | |
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
| function Get-S3ObjectContent { | |
| <# | |
| .Synopsis | |
| Get-Content for AWS S3 file without download | |
| .DESCRIPTION | |
| Retreives file content from a file stored in Amazon S3 bucket without downloading | |
| .EXAMPLE | |
| Use the following example when already authenticated with aws, e.g. inside an aws lambda function | |