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
traces | |
| project customDimensions, message, cloud_RoleName, cloud_RoleInstance, operation_Name, timestamp | |
| where message contains "<<error log or message >>" | |
| where cloud_RoleName =~ '<<Function App Name>>' and operation_Name == '<<Function name>>' | |
| where timestamp > ago(30m) |
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
$connectionName = "AzureRunAsConnection" | |
$servicePrincipalConnection=Get-AutomationConnection -Name $connectionName | |
Add-AzureRmAccount -ServicePrincipal -TenantId $servicePrincipalConnection.TenantId -ApplicationId $servicePrincipalConnection.ApplicationId -CertificateThumbprint $servicePrincipalConnection.CertificateThumbprint | |
$functionname="<<FunctionAppName>>" | |
$resourceGroupName ="<<Resource Group Name>>" | |
$webApp = Get-AzureRmWebApp -ResourceGroupName $resourceGroupName -Name $functionname | |
$appSettingList =$webApp.SiteConfig.AppSettings | |
$appSettings = @{} | |
ForEach ($kvp in $appSettingList) { | |
$appSettings[$kvp.Name] = $kvp.Value |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Fabric; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.ServiceBus.Messaging; | |
using Microsoft.ServiceFabric.Services.Communication.Runtime; | |
using Microsoft.ServiceFabric.Services.Runtime; |
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
docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --publish 1414:1414 --publish 9443:9443 --detach --volume qm1data:/mnt/mqm ibmcom/mq | |
Qm1data - is a local volume | |
Ibmcom/mq - is the docker image name |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: aspnetcore | |
labels: | |
name: aspnetcore | |
owner: Bindu | |
spec: | |
type: NodePort | |
ports: |
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
version: '3' | |
services: | |
db: | |
image: mysql | |
ports: | |
- "3306:3306" | |
# This sets the root password for MYSQL DB | |
environment: | |
MYSQL_ROOT_PASSWORD: <<My sql root pwd>> |