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