az account list-locations -o table
DisplayName | Latitude | Longitude | Name |
---|---|---|---|
East Asia | 22.267 | 114.188 | eastasia |
Southeast Asia | 1.283 | 103.833 | southeastasia |
Central US | 41.5908 | -93.6208 | centralus |
East US | 37.3719 | -79.8164 | eastus |
/**** | |
Javascript equivalent of Microsoft Excel's NETWORKDAYS() function. | |
Calculate Working Days between two dates. | |
Optimized for performance. accepts String '12/18/1990' and new Date('12/18/1990') Object. | |
usage: | |
networkdays('12/18/1990','12/18/2016'); | |
networkdays(new Date(),'12/18/2016'); |
# This gist mimics the supposed behavior of | |
# variable = merge(someListOfMaps[*].parameters...) | |
# or | |
# policy_parameters = merge(data.azurerm_policy_definition.d_policy_definitions[*].parameters...) | |
locals { | |
policy_parameters = [ | |
for key,value in data.azurerm_policy_definition.d_policy_definitions: | |
{ | |
parameters = jsondecode(value.parameters) |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Statement1", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Effect": "Allow", | |
"Action": [ |
<?php | |
/** | |
* Get current Laravel active session from outside laravel instance. | |
* Tested Laravel 5.2 | |
* | |
* | |
*/ | |
function getLaravelUser() | |
{ | |
require __DIR__ . '\path\to\bootstrap\autoload.php'; |
abuse | |
admin | |
all | |
billing | |
contact | |
everyone | |
ftp | |
jobs | |
list | |
marketing |
# workstation-ks.cfg | |
# version 1.0.1 2012-03-15 | |
# Copyright 2010,2011,2012 Red Hat Inc., Durham, North Carolina. | |
# All Rights Reserved. | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# |
#!/usr/bin/perl | |
use strict; | |
my $scriptname = $0; | |
my $separator = '='; | |
my $whitespace = 0; | |
my @files = (); | |
my @namevalues = (); |
az account list-locations -o table
DisplayName | Latitude | Longitude | Name |
---|---|---|---|
East Asia | 22.267 | 114.188 | eastasia |
Southeast Asia | 1.283 | 103.833 | southeastasia |
Central US | 41.5908 | -93.6208 | centralus |
East US | 37.3719 | -79.8164 | eastus |
Personal Note on how to install Azure CLI Extension or AZ Extensions
az extension add --name [extension]