Skip to content

Commit

Permalink
Add PScustomobject to resolve error with add-azdatatableentity
Browse files Browse the repository at this point in the history
  • Loading branch information
DChorn-ANS authored Apr 12, 2023
1 parent feefa40 commit 29a9262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DomainAnalyser_GetTenantDomains/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if ($TenantCount -gt 0) {
$Domain = Get-AzDataTableEntity @DomainTable -Filter $Filter

if (!$Domain) {
$DomainObject = @{
$DomainObject = [pscustomobject]@{
DomainAnalyser = ''
TenantDetails = $TenantDetails
TenantId = $Tenant.Tenant
Expand Down Expand Up @@ -94,4 +94,4 @@ if ($TenantCount -gt 0) {
catch { Write-LogMessage -API 'DomainAnalyser' -message "Domain Analyser GetTenantDomains Error $($_.Exception.Message)" -sev info }
}
catch { Write-LogMessage -API 'DomainAnalyser' -message "GetTenantDomains loop exception: $($_.Exception.Message) line $($_.InvocationInfo.ScriptLineNumber)" }
}
}

0 comments on commit 29a9262

Please sign in to comment.