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/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"rgLocation": { | |
"type": "string", | |
"defaultValue": "Southeast Asia" | |
}, | |
"rgName": { | |
"type": "string", |
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
az deployment create --name <deployment_name> --location <resource_location> --template-file .\azuredeploy.json |
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
npm install @sentry/[email protected] --save |
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
import * as sentry from '@sentry/node'; | |
sentry.init({ | |
dsn: 'https://[email protected]/1xxxxx1', | |
release: '1.0.1' | |
}); |
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
try { | |
// Your code | |
} catch (err) { | |
sentry.captureException(err); | |
} |
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
import * as sentry from '@sentry/node'; | |
import { IMonitoring } from './interfaces/IMonitoring'; | |
import { SentryEvent } from '@sentry/node'; | |
export class Monitoring implements IMonitoring { | |
constructor() { | |
} | |
configure(): void { |
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-AzureRmResourceGroup -Name "Tags-DEV-Web" -Tag @{ Department = "Development" } |
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
# Add tag to Azure Resource Group | |
az group update --name "Tags-PRD-Web" --set tags.Department=Operations |
OlderNewer