public override void Execute()
{
base.Execute();
if (string.Equals(ParameterSetName, Microsoft.Azure.Commands.Network.Properties.Resources.SetByResource))
{
if (this.Subnet != null)
{
this.SubnetId = this.Subnet.Id;
}
if (this.PublicIpAddress != null)
{
this.PublicIpAddressId = this.PublicIpAddress.Id;
}
}
}
}