Skip to content

Instantly share code, notes, and snippets.

@kongou-ae
kongou-ae / gist:5a16e31965ce71761ca2dda0a7565b25
Last active October 15, 2018 13:22
The alerts of Azure Stack

The alerts of Azure Stack 1808 update

BRPAlertTemplates

  • "Backup failed because of an unknown error"
    • "Critical"
    • "Infrastructure backup failed because of an unknown error."
  • "Backup failed because can't access backup share"
    • "Critical"
    • "Infrastructure backup failed because the backup file share is not accessible. This might be because of an authent ication issue, or access is denied by the external file server."
@kongou-ae
kongou-ae / Get-AzureRmCostsPerRG.ps1
Last active August 19, 2018 16:47
Get-AzureRmCostsPerRG.ps1
Add-Type -AssemblyName System.Web
Login-AzureRmAccount
$subscriptionId = (Get-AzureRmSubscription | Out-GridView -PassThru).SubscriptionId
Select-AzureRmSubscription -Subscription $subscriptionId
$context = Get-AzureRmContext
Write-Output "Calculating costs of $subscriptionId"
@kongou-ae
kongou-ae / Set-AzureRmNetworkWatcherConfigFlowLog.ps1
Last active July 24, 2018 15:58
Set-AzureRmNetworkWatcherConfigFlowLog
$Region = "westus2"
$NsgName = "vyos-nsg"
$NsgRsgName = "virtualwan"
$LogstorageRsgName = "azs"
$LogStorageName = "azsdiag457"
$NetworkWatcherName = "NetworkWatcher_" + $Region
$NW = Get-AzurermNetworkWatcher -ResourceGroupName NetworkWatcherRG -Name $NetworkWatcherName
$nsg = Get-AzureRmNetworkSecurityGroup -ResourceGroupName $NsgRsgName -Name $NsgName
@kongou-ae
kongou-ae / gist:4955f82c0a2f272e9a213a0e92349ea8
Last active January 27, 2018 15:24
Weighted load balancer
Weighted load balancer is needed to simplify the design of clustered virtual firewall appliance. The necessary weight is only 100 vs 0.
In the senarios that Azure Load Balancer which faces to internet balances to two virtual firewall appliances, firewalls must transrate a source ip address to avoid asymmetric routing. So the servers which recieve packets from firewalls don't know the ip address of real client. The details are in attached picture.
If Azure Load Balancer have the avility of weight balancing, firewalls don't transrate a source ip address. Because Every packet always pass through one firewall . The design of clustering two firewall become very simple in using the ha port of standard load balancer.
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 1 column 43
---

Title: author Azure Function uses deferral: ongou_ye

date: 2017-12-14 url: /archives/2017-12-14-using-asyncawait-on-azure-function categories:

*   Azure

---
@kongou-ae
kongou-ae / moment.js
Created December 19, 2017 14:04
moment.js
let main = async() =>{
const moment = require('moment');
let m = moment()
let res = m.utc().format('MM')
console.log(res)
}
main()
「やること」の「lambda」が更新されました。
```
aaaaaaaaaaaaaaaaaa
```
{
id: "6129407334",
type: "PushEvent",
actor: {
id: 4665434,
login: "v-alje",
display_login: "v-alje",
gravatar_id: "",
url: "https://api.github.com/users/v-alje",
avatar_url: "https://avatars.githubusercontent.com/u/4665434?"