public PSApplicationGatewayProbe NewObject()
        {
            var probe = new PSApplicationGatewayProbe();

            probe.Name               = this.Name;
            probe.Protocol           = this.Protocol;
            probe.Host               = this.HostName;
            probe.Path               = this.Path;
            probe.Interval           = this.Interval;
            probe.Timeout            = this.Timeout;
            probe.UnhealthyThreshold = this.UnhealthyThreshold;
            if (this.PickHostNameFromBackendHttpSettings.IsPresent)
            {
                probe.PickHostNameFromBackendHttpSettings = true;
            }
            probe.MinServers = this.MinServers;
            probe.Match      = this.Match;

            probe.Id =
                ApplicationGatewayChildResourceHelper.GetResourceNotSetId(
                    this.NetworkClient.NetworkManagementClient.SubscriptionId,
                    Microsoft.Azure.Commands.Network.Properties.Resources.ApplicationGatewayProbeName,
                    this.Name);

            return(probe);
        }
        public PSApplicationGatewayProbe NewObject()
        {
            var probe = new PSApplicationGatewayProbe();

            probe.Name               = this.Name;
            probe.Protocol           = this.Protocol;
            probe.Host               = this.HostName;
            probe.Path               = this.Path;
            probe.Interval           = this.Interval;
            probe.Timeout            = this.Timeout;
            probe.UnhealthyThreshold = this.UnhealthyThreshold;

            probe.Id =
                ApplicationGatewayChildResourceHelper.GetResourceNotSetId(
                    this.NetworkClient.NetworkManagementClient.SubscriptionId,
                    Microsoft.Azure.Commands.Network.Properties.Resources.ApplicationGatewayProbeName,
                    this.Name);

            return(probe);
        }