Hello WinTechie,
You need to be utilizing the proper CIDR structure:
$sap = @("10.10.10.0/29")
$rule1 = New-AzNetworkSecurityRuleConfig -Name rdp-rule -Description "Allow RDP" -Access Allow -Protocol Tcp -Direction Inbound -Priority 100 -SourceAddressPrefix $sap -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 3389
$nsg = New-AzNetworkSecurityGroup -ResourceGroupName "cloudaen-test" -Location "eastus" -Name "nsg" -SecurityRules $rule1
Note that I used 10.10.10.0/29 when setting up the $sap variable. I'd recommend replacing "cloudaen-test" with your RG name.
Hope this helps.
How to (for future use):
Azure NSG Creation Error - Invalid Address Prefix - PowerShell
https://www.cloudaen.com/blogs/view/nsg_creation_error
If this is helpful please accept answer.