There are multiple types of data contract out there now, happened to use one below as so much tooling.
This file contains hidden or 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
# Variables | |
$resourceGroupName = 'myResourceGroup' | |
$location = 'northeurope' | |
$automationAccountName = 'myAutomationAccount' | |
$runbookName = 'myRunbook3' | |
$runbookDescription = 'This is a test runbook' | |
$runbookType = 'PowerShell7' | |
$scriptContent='Write-Output "Hello World!"' | |
# Login to Azure |
This file contains hidden or 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
"terminal.integrated.env.osx": { | |
"PATH": "" | |
} |
This could be used for user stories and how to refine them. You should always start with the chaos or complex tasks for a feature and move through complicate until land in obvious so the tasks can be done. If you do the obvious first and leave the complicated until later, it may mean you have change the obvious implementation as those simple means could not be used once the comlpex or complicated has been interpreted.
clear | complicated | complex | chaotic | confusion |
---|
-
What is the power of the technology?
-
What limitations does the technology diminish?
-
What rules enabled us to manage this limitation?
-
What new rules will we need?
This file contains hidden or 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
{ | |
"mode": "All", | |
"policyRule": { | |
"if": { | |
"allOf": [ | |
{ | |
"field": "Microsoft.Web/sites/config/ipSecurityRestrictions[*].ipAddress", | |
"notIn": "[parameters('allowedIPs')]" | |
}, | |
{ |
This file contains hidden or 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
# https://towardsdatascience.com/spark-3-nested-fields-not-so-nested-anymore-9b8d34b00b95 | |
# https://medium.com/@fqaiser94/manipulating-nested-data-just-got-easier-in-apache-spark-3-1-1-f88bc9003827 | |
from pyspark.sql import SparkSession | |
from pyspark.sql.types import StructType, json | |
from pyspark.sql.functions import struct, from_json, to_json, col | |
spark = (SparkSession | |
.builder | |
.appName('dog_removecols') |
This file contains hidden or 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
{ | |
"mode": "All", | |
"policyRule": { | |
"if": { | |
"field": "type", | |
"equals": "Microsoft.Storage/storageAccounts" | |
}, | |
"then": { | |
"effect": "deployIfNotExists", | |
"details": { |
This file contains hidden or 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
Connect-AzAccount | |
Select-AzSubscription -SubscriptionId ddcf4317-347c-4cb5-9153-1508b94f3088 | |
$ctx = New-AzStorageContext -StorageAccountName 'griffvnetlk2' -UseConnectedAccount | |
##write-host $ctx.StorageAccount | |
$storageAccount = Get-AzStorageAccount -ResourceGroupName "testvnet-rg" -AccountName "griffvnetlk2" | |
$ctx = $storageAccount.Context |
NewerOlder