mirror of
https://dev.azure.com/effectory/Survey%20Software/_git/Cloud%20Engineering
synced 2026-02-27 18:52:18 +01:00
Multiple changes
- Check output - Updated list generation - Started subdomain takeover check module
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user