Thanks Preston-K-Parsard
One more thing need to be addressed :
=================
Get-AzureRMPublicIpAddress : Method 'get_SerializationSettings' in type 'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient' from assembly
'Microsoft.Azure.Commands.ResourceManager.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
At C:\Users\r.shirish.mahajan\Downloads\Auto\0026-azure-automation-plus-dsc-lab-master\Deploy-AzureResourceGroup.ps1:306 char:17
+ ... $fqdnDev = (Get-AzureRMPublicIpAddress -ResourceGroupName $rg | Where ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AzureRmPublicIpAddress], TypeLoadException
+ FullyQualifiedErrorId : System.TypeLoadException,Microsoft.Azure.Commands.Network.GetAzurePublicIpAddressCommand
=================
Fixed it by using Az command and script worked.. One last thing to bring to your notice is below warning :
WARNING: Breaking changes in the cmdlet 'Set-AzVirtualNetworkSubnetConfig' :
WARNING: - Update Property Name
WARNING: Cmdlet invocation changes :
Old Way : -ResourceId
New Way : -NatGatewayId
WARNING: - Update Property Name
WARNING: Cmdlet invocation changes :
Old Way : -InputObject
New Way : -NatGateway
WARNING: NOTE : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.
============
WARNING: Breaking changes in the cmdlet 'Set-AzVirtualNetworkSubnetConfig' :
WARNING: - Update Property Name
WARNING: Cmdlet invocation changes :
Old Way : -ResourceId
New Way : -NatGatewayId
WARNING: - Update Property Name
WARNING: Cmdlet invocation changes :
Old Way : -InputObject
New Way : -NatGateway
WARNING: NOTE : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.
============
Got these 2 times, anything to fix here? or Ok to ignore?