This file contains 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 | |
$ResourgeGroupName = Read-Host "Please provide name of ResourgeGroup that will be used for saving the NSG logs" | |
$StorageAccountLogs = Read-Host "Please provide name of Storage Account that will be used for saving the NSG logs" | |
$retentionperiod = Read-Host "Please provide retention period" | |
#Login to the Azure Resource Management Account | |
#Login-AzureRmAccount | |
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Insights |
This file contains 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
<# | |
======================================================================================= | |
AUTHOR: Alexandre Verkinderen | |
DATE: 18/07/2019 | |
Version: 1.0 | |
Comment: bulk enable NSG flow and traffic analytics | |
======================================================================================= | |
#> | |
#variables |
This file contains 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
{ | |
"properties": { | |
"displayName": "Match multiple name patterns.", | |
"description": "Allows one of multiple naming patterns for resources.", | |
"mode": "all", | |
"policyRule": { | |
"if": { | |
"allOf": [ | |
{ | |
"not": { |
This file contains 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
{ | |
"if": { | |
"field": "type", | |
"like": "Microsoft.Classic*" | |
}, | |
"then": { | |
"effect": "Deny" | |
} | |
} |
This file contains 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
{ | |
"Name": "Limited Admin", | |
"Id": null, | |
"IsCustom": true, | |
"Description": "Can do anything except changing permissions and network settings.", | |
"Actions": [ | |
"*" | |
], | |
"NotActions": [ | |
"Microsoft.Network/virtualNetworks/write", |
This file contains 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
<# | |
.SYNOPSIS | |
This script will saturate a specified number of CPU cores to 100% utilization. | |
.DESCRIPTION | |
This script will saturate a specified number of CPU cores to 100% utilization. |
This file contains 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
################################################# | |
# Author: Alexandre Verkinderen | |
# Company: cubesys | |
# date: 05/09/2017 | |
################################################ | |
#Login-AzureRmAccount | |
#region variables |
This file contains 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
################################################# | |
# Author: Alexandre Verkinderen | |
# Company: cubesys | |
# date: 04/09/2017 | |
################################################ | |
Login-AzureRmAccount | |
#region variables |
This file contains 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
$policyName = Read-Host "Specify the name of the policy"; | |
$policyDescription = Read-Host "Specify the description of the policy" | |
$policyFile = Read-Host "Path to json policy file"; | |
#Login to the Azure Resource Management Account | |
Login-AzureRmAccount | |
#region Get Azure Subscriptions | |
$subscriptions = Get-AzureRmSubscription | |
$menu = @{} |
This file contains 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 | |
$ResourgeGroupName = Read-Host "Please provide name of ResourgeGroup that will be used for saving the NSG logs" | |
$StorageAccountLogs = Read-Host "Please provide name of Storage Account that will be used for saving the NSG logs" | |
#Login to the Azure Resource Management Account | |
Login-AzureRmAccount | |
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Insights | |
#region Get Azure Subscriptions |
NewerOlder