What is the status? Options: Proposed, Accepted, Rejected, Deprecated, Superseded
What is the issue that we're seeing that is motivating this decision or change?
# https://docs.microsoft.com/en-us/azure/bastion/connect-native-client-windows | |
# NOTE - NEEDS BASTION STANDARD SKU | |
# run once | |
choco install azure-cli -y | |
az extension add --name ssh | |
# Connect | |
az login --tenant "<tenantid>" | |
az account set --subscription "<Bastion Subscription ID>" |
https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux | |
echo "$(tput setaf 1)Red text$(tput sgr 0)" | |
echo "Normal text" | |
echo "$(tput setaf 2)Green text$(tput sgr 0)" | |
echo "Normal text" | |
echo "$(tput setaf 3)Yellow text$(tput sgr 0)" | |
echo "Normal text" | |
echo "$(tput setaf 4)Blue text$(tput sgr 0)" | |
echo "Normal text" |
function Start-ProcessTimeout { | |
<# | |
.SYNOPSIS | |
Start a Windows Process and stop it if it runs longer than a timeout. | |
.EXAMPLE | |
Start-ProcessTimeout -FilePath "C:\windows\notepad.exe" -TimeOut 10 | |
Opens Notepad and then closes after 10 seconds. | |
.EXAMPLE | |
Start-ProcessTimeout -FilePath "C:\windows\notepad.exe" -TimeOut 10 -ArgumentList "Example.txt" | |
Opens Notepad and the Example text file and then closes after 10 seconds. |
License | |
Copyright (c) <YEAR> <COPYRIGHT HOLDER> | |
All rights reserved. No part of this software may be reproduced, stored in a | |
retrieval system, or transmitted in any form or by any means, electronic, | |
mechanical, photocopying, recording, or otherwise, without the prior permission | |
of the copyright owner. | |
The above copyright notice and this permission notice shall be included in all |
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"environmentPrefix": { | |
"type": "string" | |
}, | |
"location": { | |
"type": "string", | |
"defaultValue": "[resourceGroup().location]", |
# By default there are 7 ttys (TeleTYpewriter) in Linux: tty1, tty2 ....tty7 | |
# To change to tty2 press: | |
# CTRL + ALT + Function2 or in a ssh window: | |
sudo chvt 2 | |
# To check which tty is current | |
tty | |
# Expected result | |
# /dev/tty2 |
function Test-LastRun { | |
<# | |
.SYNOPSIS | |
Tests if this function has been called earlier than a date object. | |
.EXAMPLE | |
Test-LastRun -RunSince ((Get-Date).AddDays(-30)) | |
if this script has been run in the last 30 days it will return $true | |
if this script has not been run in the last 30 days it will return $false | |
.NOTES | |
License : MIT License |
How to find the current schema for Azure ARM templates.
Go to https://github.com/Azure/azure-resource-manager-schemas
Press t to enter the [GitHub File Finder][3].
Type DeploymentTemplate.
The list of deployment template schema will be displayed.
Source
# Details on CredSSP https://support.microsoft.com/en-us/topic/credssp-updates-for-cve-2018-0886-5cbf9e5f-dc6d-744f-9e97-7ba400d6d3ea | |
# Patch https://support.microsoft.com/en-us/topic/april-17-2018-kb4093120-os-build-14393-2214-e902ffe0-783a-c091-6f99-bf1105f0b75e | |
# Details on CredSSP https://support.microsoft.com/en-us/topic/credssp-updates-for-cve-2018-0886-5cbf9e5f-dc6d-744f-9e97-7ba400d6d3ea | |
# Patch https://support.microsoft.com/en-us/topic/april-17-2018-kb4093120-os-build-14393-2214-e902ffe0-783a-c091-6f99-bf1105f0b75e | |
$Key = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP" | |
# Force Updated Clients: 0 | |
# Mitigated: 1 | |
# Vulnerable: 2 |