mirror of
https://dev.azure.com/effectory/Survey%20Software/_git/Cloud%20Engineering
synced 2026-02-27 18:52:18 +01:00
22 lines
629 B
PowerShell
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"
|
|
} |