From 2c6e8cede3e467eec2af80cf12700982fe7fbde0 Mon Sep 17 00:00:00 2001 From: Jurjen Ladenius Date: Thu, 12 Aug 2021 10:42:44 +0200 Subject: [PATCH] Multiple changes - Check output - Updated list generation - Started subdomain takeover check module --- .../public/Get-EffectoryDomainResources.ps1 | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Powershell/Modules/Effectory.Dns/public/Get-EffectoryDomainResources.ps1 diff --git a/Powershell/Modules/Effectory.Dns/public/Get-EffectoryDomainResources.ps1 b/Powershell/Modules/Effectory.Dns/public/Get-EffectoryDomainResources.ps1 new file mode 100644 index 0000000..5fffc53 --- /dev/null +++ b/Powershell/Modules/Effectory.Dns/public/Get-EffectoryDomainResources.ps1 @@ -0,0 +1,22 @@ +function Get-EffectoryDomainResources { + <# + .SYNOPSIS + Find dangling DNS records + .DESCRIPTION + Compares DNS bindings with a previous state and checks the existence of DNS records for bindings that may have been deleted. + .PARAMETER subscriptionId + Optional Subscription Id to set the context to. Otherwise uses the current context. + #> + param( + [Parameter()] + [string] $subscriptionId + ) + + $subscription = Get-AzContext + if (![string]::IsNullOrWhitespace($subscriptionId)) { + $subscription = Set-AzContext -SubscriptionId $subscriptionId + } + + + Write-Host "foo" +} \ No newline at end of file