Skip to content

Instantly share code, notes, and snippets.

@aledeniz
aledeniz / gist:b6e305a1a2aaad3d811fabadd28d929f
Created March 8, 2022 15:54
The terraform-provider-azurerm_v2.95.0_x5.exe plugin crashed! While Azure DevOps Services was having an hiccup!
2022-03-08T15:22:54.5164641Z ##[section]Starting: Terraform Plan
2022-03-08T15:22:54.5302354Z ==============================================================================
2022-03-08T15:22:54.5302654Z Task : PowerShell
2022-03-08T15:22:54.5302896Z Description : Run a PowerShell script on Linux, macOS, or Windows
2022-03-08T15:22:54.5303130Z Version : 2.200.0
2022-03-08T15:22:54.5303328Z Author : Microsoft Corporation
2022-03-08T15:22:54.5303620Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2022-03-08T15:22:54.5303950Z ==============================================================================
2022-03-08T15:22:55.6899346Z Generating script.
2022-03-08T15:22:55.7266860Z ========================== Starting Command Output ===========================
@aledeniz
aledeniz / gist:6e5ac1682375c249aa69ae12200665b8
Created March 5, 2022 23:34
The terraform-provider-azurerm_v2.95.0_x5.exe plugin crashed!
2022-03-05T23:04:44.4424544Z ╷
2022-03-05T23:04:44.4425306Z │ Error: Plugin did not respond
2022-03-05T23:04:44.4425842Z │ 
2022-03-05T23:04:44.4426468Z │  with provider["registry.terraform.io/hashicorp/azurerm"],
2022-03-05T23:04:44.4427358Z │  on version.tf line 16, in provider "azurerm":
2022-03-05T23:04:44.4428052Z │  16: provider "azurerm" {
2022-03-05T23:04:44.4428515Z │ 
2022-03-05T23:04:44.4429106Z │ The plugin encountered an error, and failed to respond to the
2022-03-05T23:04:44.4429824Z │ plugin.(*GRPCProvider).ValidateProviderConfig call. The plugin logs may
2022-03-05T23:04:44.4430514Z │ contain more details.
@aledeniz
aledeniz / Custom_IKE-IPSEC_policy.ps1
Created November 19, 2019 10:33
Cisco ASA5516 9.8(2) site to site connection with Azure IKEv2 (no BGP)
$RG = "MyRG"
$ConnectionName = "STS-Azure-HQ"
$connection = Get-AzureRmVirtualNetworkGatewayConnection -Name $ConnectionName -ResourceGroupName $RG
$ipsecpolicy = New-AzureRmIpsecPolicy -IkeEncryption AES256 -IkeIntegrity SHA256 -DhGroup DHGroup2 -IpsecEncryption AES256 -IpsecIntegrity SHA256 -PfsGroup PFS2 -SALifeTimeSeconds 3600 -SADataSizeKilobytes 2048
Set-AzureRmVirtualNetworkGatewayConnection -VirtualNetworkGatewayConnection $connection -UsePolicyBasedTrafficSelectors $True -IpsecPolicies $ipsecpolicy
@aledeniz
aledeniz / Active_Directory_Delegation.ps1
Created November 19, 2019 10:18
Active Directory Delegation via PowerShell
# Adapted from Joe Corey's Active Directory Delegation via PowerShell at
# https://blogs.technet.microsoft.com/joec/2013/04/25/active-directory-delegation-via-powershell/
Import-Module ActiveDirectory
#Bring up an Active Directory command prompt so we can use this later on in the script
cd ad:
#Get a reference to the RootDSE of the current domain
$rootdse = Get-ADRootDSE
@aledeniz
aledeniz / Packer 1.2.4 output for Error uploading ps script
Created June 19, 2019 12:54
Packer 1.2.4 template for Error uploading ps script
P:\Builds\01\_temp\1560929507668\packer\packer.exe build -force -color=false -var-file=P:\Builds\01\_temp\9vwzjp3j39efvhcf48d4bcsor.json -var-file=P:\Builds\01\_temp\6vd13ri8aphkkmxvxnb9t6s9k9.json P:\Builds\01\1\s\images\win\vs2017-Server2016-Azure-fixed.json
==> azure-arm: Running builder ...
azure-arm: Creating Azure Resource Manager (ARM) client ...
==> azure-arm: Creating resource group ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-8s********'