Skip to content

Instantly share code, notes, and snippets.

@ontouchstart
ontouchstart / AzConsumptionUsageDetail.json
Created Nov 18, 2020
Get-AzConsumptionUsageDetail | Select-Object -Property InstanceName, ConsumedService, UsageQuantity, UsageStart, UsageEnd | Sort-Object -Property UsageQuantity | ConvertTo-Json | Out-File -Path /home/AzConsumptionUsageDetail.json
View AzConsumptionUsageDetail.json
[
{
"InstanceName": "win2016VM",
"ConsumedService": "Microsoft.Compute",
"UsageQuantity": 0.000008,
"UsageStart": "2020-11-16T00:00:00Z",
"UsageEnd": "2020-11-16T23:59:59Z"
},
{
"InstanceName": "ontouchstart",
@ontouchstart
ontouchstart / AzConsumptionUsageDetail.json
Created Nov 18, 2020
Get-AzConsumptionUsageDetail | Select-Object -Property UsageQuantity, UsageStart, UsageEnd | Sort-Object -Property UsageQuantity | ConvertTo-Json | Out-File -Path /home/AzConsumptionUsageDetail.json
View AzConsumptionUsageDetail.json
[
{
"UsageQuantity": 0.000008,
"UsageStart": "2020-11-16T00:00:00Z",
"UsageEnd": "2020-11-16T23:59:59Z"
},
{
"UsageQuantity": 0.000008,
"UsageStart": "2020-11-17T00:00:00Z",
"UsageEnd": "2020-11-17T23:59:59Z"
@ontouchstart
ontouchstart / AzConsumptionUsageDetail.json
Created Nov 18, 2020
Get-AzConsumptionUsageDetail | Select-Object -Property UsageQuantity, UsageStart, UsageEnd | ConvertTo-Json | Out-File -Path /home/AzConsumptionUsageDetail.json
View AzConsumptionUsageDetail.json
[
{
"UsageQuantity": 0.009636,
"UsageStart": "2020-11-17T00:00:00Z",
"UsageEnd": "2020-11-17T23:59:59Z"
},
{
"UsageQuantity": 0.004827,
"UsageStart": "2020-11-16T00:00:00Z",
"UsageEnd": "2020-11-16T23:59:59Z"
View AzConsumptionUsageDetail.json
[
{
"AccountName": null,
"AdditionalInfo": null,
"AdditionalProperties": null,
"BillableQuantity": null,
"BillingPeriodId": "/subscriptions/2441ec97-42d8-424a-a820-c4aefaa7c958/providers/Microsoft.Billing/billingPeriods/202012",
"BillingPeriodName": "202012",
"ConsumedService": "Microsoft.Compute",
"CostCenter": null,
View docker-compose.yml
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
View Makefile
up:
docker-compose up -d
down:
docker-compose down
rebuild:
docker-compose run web bundle install
docker-compose build
You can’t perform that action at this time.