View transrated.md
---

Title: author Azure Function uses deferral: ongou_ye

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

*   Azure

---
View moment.js
let main = async() =>{
const moment = require('moment');
let m = moment()
let res = m.utc().format('MM')
console.log(res)
}
main()
View gist:a068ffd32d938c94e649e3e5371523e1
「やること」の「lambda」が更新されました。
```
aaaaaaaaaaaaaaaaaa
```
View gist:258d8c7b0ca898cd7202702c4831c8f6
{
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?"
View gist:7459c120bb74a6c15a805d9cdb532d83
https://api.github.com/repos/Microsoft/azure-docs/events
[
{
id: "6121971036",
type: "PushEvent",
actor: {
id: 4665434,
login: "v-alje",
display_login: "v-alje",
View gist:c00473c9fa5665305c943b707df91108
<powershell>
Invoke-WebRequest -Uri https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -OutFile ConfigureRemotingForAnsible.ps1
powershell -ExecutionPolicy RemoteSigned .\ConfigureRemotingForAnsible.ps1 -SkipNetworkProfileCheck
</powershell>
View gist:36c396f6fcf43b58e55ddcd69eb8fc76
aws ec2 describe-images --owner self amazon --profile lambda --region ap-northeast-1 --filters 'Name=platform,Values=windows,Name=name,Values=Windows_Server-2012-R2*Japanese-64Bit-Base*' --query 'reverse(sort_by(Images,&CreationDate))[0].ImageId' --output text
View devtool's dockerfile
FROM ubuntu
RUN apt-get update && \
apt-get install -y python3 python3-dev libssl-dev python3-pip ruby wget -no-install-recommends && \
apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* && \
apt-get update && \
pip3 install ansible && \
gem install serverspec test-kitchen --no-ri --no-rdoc && \
pip3 install awscli && \
pip3 install aws-shell && \
View fg_facts.json
"gather": {
"ansible_facts": {
"ansible_distribution": "FortiOS",
"ansible_distribution_major_version": "v4.0",
"ansible_distribution_version": "v4.0 MR3 Patch 14",
"ansible_fqdn": "FGT50B3G08xxxxxx",
"ansible_hostname": "FGT50B3G08xxxxxx",
"ansible_memfree_mb": 115,
"ansible_memtotal_mb": 249,
"ansible_module_setup": true,