Files
Cloud-20Engineering/Powershell/Modules/Effectory.Dns/public/Get-EffectoryDomainResources.ps1
Jurjen Ladenius 2c6e8cede3 Multiple changes
- Check output
- Updated list generation
- Started subdomain takeover check module
2021-08-12 10:42:44 +02:00

22 lines
629 B
PowerShell

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"
}