Skip to content

Instantly share code, notes, and snippets.

View shibayan's full-sized avatar
🌀
Overworking

Tatsuro Shibamura shibayan

🌀
Overworking
View GitHub Profile
2020-05-25T16:59:26.881 [Information] Starting JobHost
2020-05-25T16:59:26.889 [Information] Starting Host (HostId=durable-letsencrypt, InstanceId=3e5fff9b-7053-4f68-b108-92d98fd4f3d4, Version=3.0.13614.0, ProcessId=10020, AppDomainId=1, InDebugMode=True, InDiagnosticMode=False, FunctionsExtensionVersion=3.0.13614)
2020-05-25T16:59:26.911 [Information] Loading functions metadata
2020-05-25T16:59:26.921 [Information] Loading proxies metadata
2020-05-25T16:59:26.930 [Information] Initializing Azure Function proxies
2020-05-25T16:59:30.728 [Information] 1 proxies loaded
2020-05-25T16:59:30.827 [Error] A host error has occurred during startup operation 'af4b107e-b6c0-4e2d-85cf-0b761234be3c'.
System.InvalidOperationException : Found duplicate FunctionMetadata with the name AddCertificate
at Microsoft.Azure.WebJobs.Script.FunctionMetadataManager.AddMetadataFromCustomProviders(List`1 functionMetadataList) at D:\a\1\s\src\WebJobs.Script\Host\FunctionMetadataManager.cs : 184
at Microsoft.Azure.WebJobs.Script.Fun
if [ -d ~/agent ]; then
exit 0
fi
mkdir ~/agent
cd ~/agent
curl -Lso vsts-agent-linux-x64.tar.gz https://vstsagentpackage.azureedge.net/agent/2.165.2/vsts-agent-linux-x64-2.165.2.tar.gz
tar zxvf vsts-agent-linux-x64.tar.gz
param ([string] $url, [string] $token, [string] $pool, [string] $agent)
mkdir "c:\agent"
cd "c:\agent"
Invoke-WebRequest -Uri https://vstsagentpackage.azureedge.net/agent/2.165.2/vsts-agent-win-x64-2.165.2.zip -Out vsts-agent-win-x64.zip
Expand-Archive -Path vsts-agent-win-x64.zip -DestinationPath $PWD
del vsts-agent-win-x64.zip
@shibayan
shibayan / azuredeploy.json
Created November 1, 2019 03:28
Azure Functions + Run From Package ARM Template sample
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appNamePrefix": {
"type": "string",
"metadata": {
"description": "The name of the function app that you wish to create."
}
}
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
namespace FunctionApp15
using System;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration.AzureAppConfiguration;
namespace WebApplication19
{
public class Program
{
using System;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration.AzureAppConfiguration;
namespace WebApplication4
{
public class Program
{
16/02/2019 11:38:12.903 INFO - Site: aspnetdemo-container - Creating container image
16/02/2019 11:38:43.346 ERROR - Site: aspnetdemo-container - Error verifying if container exists. One or more errors occurred. --> A task was canceled.
16/02/2019 11:38:43.354 INFO - Site: aspnetdemo-container - Purging after container failed to start
16/02/2019 11:38:43.346 ERROR - Site: aspnetdemo-container - Unable to start container. Exception: System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.Web.Hosting.ProcessModel.HyperVComputeSystem.InspectContainer(String containerId)
at Microsoft.Web.Hosting.ProcessModel.HyperVComputeSystem.DoesContainerExists(String containerId, String siteName)
at Microsoft.Web.Hosting.ProcessModel.HyperVContainerFactory.GenerateContainerName(ServiceContextStartInfo st
2018-10-15T17:07:08 Fetching changes.
2018-10-15T17:07:08 Updating submodules.
2018-10-15T17:07:09 Preparing deployment for commit id '7faae8e394'.
2018-10-15T17:07:09 Skipping build. Project type: Run-From-Zip
2018-10-15T17:07:09 Skipping post build. Project type: Run-From-Zip
2018-10-15T17:07:31 Syncing 1 function triggers with payload size 112 bytes failed with System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 13.66.241.134:443
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Ex
@shibayan
shibayan / azuredeploy_windows.json
Created August 19, 2018 16:03
ARM Template for Web App for Containers (Windows)
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string",
"metadata": {
"description": "The name of the function app that you wish to create."
}
}