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
#Number of passwords to generate | |
$numberOfPasswords = 10 | |
#Password formulation | |
$passwordLength = 9 | |
$minimumNumericCharacters = 2 | |
$caps = $true | |
$specials = $false | |
#Password characters sets |
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
choco install googlechrome | |
choco install firefox | |
choco install jre8 | |
choco install flashplayerplugin | |
choco install 7zip.install | |
choco install notepadplusplus.install | |
choco install vlc | |
choco install paint.net |
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
#Azure PowerShell v2 | |
#Check documentation https://docs.microsoft.com/en-us/powershell/azure/active-directory/install-adv2?view=azureadps-2.0 | |
Import-Module AzureRM | |
$credential = Get-Credential | |
Login-AzureRmAccount -Credential $credential | |
#Set variables | |
$location = "eastus" #Find the choice of location with 'Get-AzureRmLocation | select location' | |
$rgName = "myResourceGroup" + (Get-Random -Maximum 99).ToString() |
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
#Azure PowerShell v2 | |
#Check documentation https://docs.microsoft.com/en-us/powershell/azure/active-directory/install-adv2?view=azureadps-2.0 | |
Import-Module AzureRM | |
$credential = Get-Credential | |
Login-AzureRmAccount -Credential $credential | |
#List all resource providers enabled | |
Get-AzureRmResourceProvider -ListAvailable | format-table |
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
#Requires Azure PowerShell v2 | |
#Check documentation https://docs.microsoft.com/en-us/powershell/azure/active-directory/install-adv2?view=azureadps-2.0 | |
#Make sure AzureRM module is installed and loaded | |
Import-Module AzureRM | |
#Connect to Azure | |
Login-AzureRmAccount | |
#Get the current VM config |
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
<# | |
Modified version of the script from Microsoft Documentation. | |
Removed the part that checks if the users is assigned more products than the group assigned license. | |
Added connection part and help to find Sku and Group Object ID. | |
This script requires Azure AD (aks MSOL) PowerShell v1. It doesn't seem possible to do so with v2. | |
Ref: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-licensing-ps-examples | |
#> | |
Import-Module MSOnline | |
$UserCredential = Get-Credential |
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 to Azure | |
az login | |
# Create resource group if necessary | |
az group create --name MyResourceGroup --location "Central US" | |
# Deploy the template to the defined resource group | |
az group deployment create \ | |
--name DeploymentFromCLI \ | |
--resource-group MyResourceGroup \ |
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 to Azure | |
Login-AzureRmAccount | |
#Create a new resource group is necessary | |
New-AzureRmResourceGroup -Name MyResourceGroup -Location "East US" | |
#Deploy the template in the defined Resource Group | |
New-AzureRmResourceGroupDeployment -Name ExampleDeployment -ResourceGroupName MyResourceGroup ` | |
-TemplateFile c:\projects\templates\azuredeploy.json ` | |
-Verbose |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"storageAccountType": { | |
"type": "string" | |
} | |
}, | |
"variables": { | |
"storageAccountName": "[concat('sa', uniquestring(resourceGroup().id))]" |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"resources": [ | |
{ | |
"apiVersion": "2016-01-01", | |
"type": "Microsoft.Storage/storageAccounts", | |
"name": "[concat('storage', copyIndex(), uniqueString(resourceGroup().id))]", | |
"location": "[resourceGroup().location]", | |
"sku": { |