This file contains 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
$AppResourceGroupName = "[RESOURCE_GROUP_NAME_FOR_AZURE_FUNCTION_APP]" | |
AppName = "[NAME_OF_AZURE_FUNCTION_APP]" | |
$app = Get-AzResource ` | |
-ResourceType Microsoft.Web/sites ` | |
-ResourceGroupName $AppResourceGroupName ` | |
-ResourceName $AppName | |
$newIp4Address = $app.Properties.inboundIpAddress |
This file contains 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
$resourceGroupName = "<RESOURCE_GROUP_NAME>" | |
$functionAppName = "<FUNCTION_APP_NAME>" | |
$domainName = "contoso.com" | |
Set-AzWebApp ` | |
-ResourceGroupName $resourceGroupName ` | |
-Name $functionAppName ` | |
-HostNames @( $domainName, "$functionAppName.azurewebsites.net" ) |
This file contains 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
bicep build **/*.bicep |
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": {}, | |
"functions": {}, | |
"variables": {}, | |
"resources": [], | |
"outputs": {} | |
} |
This file contains 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
Set(request, "{ 'deploymentName': '" & DeploymentName.Text & "', 'resourceGroupName': '" & ResourceGroupName.Text & "', 'vmName': '" & VMName.Text & "', 'vmAdminUsername': '" & VMAdminUsername.Text & "', 'vmAdminPassword': '" & VMAdminPassword.Text & "' }"); | |
ClearCollect(result, CreateResource.Run(request)) |
This file contains 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
let lirc_node = require('lirc_node'); | |
lirc_node.init(); | |
const remote = (device, command) => { | |
lirc_node.irsend.send_once(device, command, () => { | |
console.log(command); | |
}); | |
} |
This file contains 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
sudo apt-get update -y && sudo apt-get upgrade -y | |
sudo apt-get install lirc -y |
This file contains 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 mcr.microsoft.com/dotnet/core/sdk:3.1-bionic | |
WORKDIR /home/ | |
COPY . . | |
RUN bash ./setup.sh |
This file contains 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
namespace FeedReaders.FunctionApp | |
{ | |
public static class FeedReaderHttpTrigger | |
{ | |
[FunctionName(nameof(FeedReaderHttpTrigger.GetFeedItemsAsync))] | |
public static async Task<IActionResult> GetFeedItemsAsync( | |
[HttpTrigger(AuthorizationLevel.Function, "post", Route = "feeds/items")] HttpRequest req, | |
ILogger log) | |
{ | |
... |
This file contains 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
# PowerShell Console | |
azfuncopenapi ` | |
--project <PROJECT_PATH> ` | |
--configuration Debug ` | |
--target netcoreapp2.1 ` | |
--version v2 ` | |
--format json ` | |
--output output ` | |
--console false |