Public/get-AllegisIDNMapping.ps1
1 2 3 4 5 6 7 8 9 10 11 12 |
function get-AllegisIDNMapping ($storageAccountKey, $storageAccountname, $source, $destination){ $context=New-AzureStorageContext -StorageAccountKey $storageAccountKey -StorageAccountName $storageAccountname -Protocol Https $table=Get-AzureStorageTable -Context $context $allmappings=Get-AzureStorageTableRowAll -table $table $source=$source.replace('-','') $destination=$destination.Replace('-','') $output=@{} foreach($item in $allmappings){ $output+=@{$item.$source=$item.$destination} } return $output } |