Skip to content

Commit e4f1829

Browse files
potatoqualiteegithub-actions[bot]
authored andcommitted
refreshing docs pages
1 parent 4c3bf85 commit e4f1829

File tree

681 files changed

+10866
-7817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

681 files changed

+10866
-7817
lines changed

Add-DbaAgDatabase.html

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,10 @@ <h1 id="add-dbaagdatabase">Add-DbaAgDatabase</h1>
485485
<br>
486486
Want to see the Bill Of Health for this command? Check out <a href="https://dataplat.github.io/boh#Add-DbaAgDatabase">Add-DbaAgDatabase</a>.</p>
487487
<h2 id="synopsis">Synopsis</h2>
488-
<p>Adds database(s) to an Availability Group on a SQL Server instance.</p>
488+
<p>Adds databases to an Availability Group with automated backup, restore, and synchronization handling.</p>
489489
<h2 id="description">Description</h2>
490-
<p>Adds database(s) to an Availability Group on a SQL Server instance.</p>
491-
<p>After checking for prerequisites, the commands runs these five steps for every database:</p>
490+
<p>Adds databases to an Availability Group and handles the complete process from backup through synchronization. This command eliminates the manual steps typically required when expanding Availability Groups with new databases, automatically managing seeding modes, backup/restore operations, and replica synchronization.</p>
491+
<p>The command executes a comprehensive five-step process for each database:</p>
492492
<ul>
493493
<li>Step 1: Setting seeding mode if needed.
494494
<ul>
@@ -516,10 +516,8 @@ <h2 id="description">Description</h2>
516516
</li>
517517
<li>Step 5: Wait for the database to finish joining the Availability Group on the secondary replicas.</li>
518518
</ul>
519-
<p>Use Test-DbaAvailabilityGroup with -AddDatabase to test if all prerequisites are met.</p>
520-
<p>If you have special requirements for the setup for the database at the replicas,<br />
521-
perform the backup and restore part with Backup-DbaDatabase and Restore-DbaDatabase in advance.<br />
522-
Please make sure that the last log backup has been restored before running Add-DbaAgDatabase.</p>
519+
<p>Use Test-DbaAvailabilityGroup with -AddDatabase to test if all prerequisites are met before running this command.</p>
520+
<p>For custom backup and restore requirements, perform those operations with Backup-DbaDatabase and Restore-DbaDatabase in advance, ensuring the last log backup has been restored before running Add-DbaAgDatabase.</p>
523521
<h2 id="syntax">Syntax</h2>
524522
<pre><code>Add-DbaAgDatabase
525523
[-SqlInstance] &lt;DbaInstanceParameter&gt;
@@ -617,7 +615,8 @@ <h5 id="sqlinstance">-SqlInstance</h5>
617615
</tbody>
618616
</table>
619617
<h5 id="availabilitygroup">-AvailabilityGroup</h5>
620-
<p>The name of the Availability Group where the databases will be added. <br></p>
618+
<p>Specifies the target Availability Group name where databases will be added. The AG must already exist and be configured.<br />
619+
Use this to identify which existing Availability Group should receive the new database members. <br></p>
621620
<table>
622621
<thead>
623622
<tr>
@@ -645,7 +644,8 @@ <h5 id="availabilitygroup">-AvailabilityGroup</h5>
645644
</tbody>
646645
</table>
647646
<h5 id="database">-Database</h5>
648-
<p>The database(s) to add. <br></p>
647+
<p>Specifies which databases to add to the Availability Group. Accepts single database names, arrays, or wildcard patterns.<br />
648+
Use this when you need to add specific databases rather than piping database objects from Get-DbaDatabase. <br></p>
649649
<table>
650650
<thead>
651651
<tr>
@@ -673,7 +673,8 @@ <h5 id="database">-Database</h5>
673673
</tbody>
674674
</table>
675675
<h5 id="inputobject">-InputObject</h5>
676-
<p>Enables piping from Get-DbaDatabase, Get-DbaDbSharePoint and more. <br></p>
676+
<p>Accepts database objects from pipeline input, typically from Get-DbaDatabase or Get-DbaDbSharePoint.<br />
677+
Use this for workflow scenarios where you want to filter databases first, then pipe the results directly into the AG addition process. <br></p>
677678
<table>
678679
<thead>
679680
<tr>
@@ -732,8 +733,8 @@ <h5 id="sqlcredential">-SqlCredential</h5>
732733
</tbody>
733734
</table>
734735
<h5 id="secondary">-Secondary</h5>
735-
<p>Not required - the command will figure this out. But use this parameter if secondary replicas listen on a non default port.<br />
736-
This parameter can be used to only add the databases on specific secondary replicas.<br></p>
736+
<p>Specifies secondary replica instances to target for database addition. Auto-discovered if not specified.<br />
737+
Use this when replicas use non-standard ports or when you want to limit the operation to specific secondary replicas rather than all replicas in the AG.<br></p>
737738
<table>
738739
<thead>
739740
<tr>
@@ -761,9 +762,8 @@ <h5 id="secondary">-Secondary</h5>
761762
</tbody>
762763
</table>
763764
<h5 id="secondarysqlcredential">-SecondarySqlCredential</h5>
764-
<p>Login to the target instance using alternative credentials. Accepts PowerShell credentials (Get-Credential).<br />
765-
Windows Authentication, SQL Server Authentication, Active Directory - Password, and Active Directory - Integrated are all supported.<br />
766-
For MFA support, please use Connect-DbaInstance.<br></p>
765+
<p>Authentication credentials for connecting to secondary replica instances when they require different credentials than the primary.<br />
766+
Use this when secondary replicas are in different domains, use SQL authentication, or require service accounts with specific permissions for backup/restore operations.<br></p>
767767
<table>
768768
<thead>
769769
<tr>
@@ -791,10 +791,9 @@ <h5 id="secondarysqlcredential">-SecondarySqlCredential</h5>
791791
</tbody>
792792
</table>
793793
<h5 id="seedingmode">-SeedingMode</h5>
794-
<p>Specifies how the secondary replica will be initially seeded.<br />
795-
Automatic enables direct seeding. This method will seed the secondary replica over the network. This method does not require you to backup and restore a copy of the primary database on the replica.<br />
796-
Manual uses full and log backup to initially transfer the data to the secondary replica. The command skips this if the database is found in restoring state at the secondary replica.<br />
797-
If not specified, the setting from the availability group replica will be used. Otherwise the setting will be updated.<br></p>
794+
<p>Controls how database data is transferred to secondary replicas during AG addition. Valid values are 'Automatic' or 'Manual'.<br />
795+
Automatic seeding transfers data directly over the network without requiring backup/restore operations, but needs sufficient network bandwidth and proper endpoint configuration.<br />
796+
Manual seeding uses traditional backup/restore through shared storage, giving you more control over timing and storage location but requiring accessible file shares.<br></p>
798797
<table>
799798
<thead>
800799
<tr>
@@ -826,9 +825,8 @@ <h5 id="seedingmode">-SeedingMode</h5>
826825
</tbody>
827826
</table>
828827
<h5 id="sharedpath">-SharedPath</h5>
829-
<p>The network share where the backups will be backed up and restored from.<br />
830-
Each SQL Server service account must have access to this share.<br />
831-
NOTE: If a backup / restore is performed, the backups will be left in tact on the network share.<br></p>
828+
<p>Specifies the UNC network path where backups are stored during manual seeding operations. Required when using Manual seeding mode.<br />
829+
All SQL Server service accounts from primary and secondary replicas must have read/write access to this location. Backup files remain on the share after completion for potential reuse or cleanup.<br></p>
832830
<table>
833831
<thead>
834832
<tr>
@@ -856,7 +854,8 @@ <h5 id="sharedpath">-SharedPath</h5>
856854
</tbody>
857855
</table>
858856
<h5 id="uselastbackup">-UseLastBackup</h5>
859-
<p>Use the last full and log backup of the database. A log backup must be the last backup.<br></p>
857+
<p>Uses existing backup history instead of creating new backups for manual seeding. The most recent log backup must be newer than the most recent full backup.<br />
858+
Use this when you have recent backups available and want to avoid taking additional backups, reducing backup storage requirements and time.<br></p>
860859
<table>
861860
<thead>
862861
<tr>
@@ -884,7 +883,8 @@ <h5 id="uselastbackup">-UseLastBackup</h5>
884883
</tbody>
885884
</table>
886885
<h5 id="advancedbackupparams">-AdvancedBackupParams</h5>
887-
<p>Provide additional parameters to the backup command as a hashtable.<br></p>
886+
<p CompressBackup="$true;" FileCount="4">Passes additional parameters to Backup-DbaDatabase as a hashtable when creating backups during manual seeding.<br />
887+
Use this to control backup compression, file count, or other backup-specific settings like @ for faster backup operations.<br></p>
888888
<table>
889889
<thead>
890890
<tr>

Add-DbaAgListener.html

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,11 @@ <h1 id="add-dbaaglistener">Add-DbaAgListener</h1>
485485
<br>
486486
Want to see the Bill Of Health for this command? Check out <a href="https://dataplat.github.io/boh#Add-DbaAgListener">Add-DbaAgListener</a>.</p>
487487
<h2 id="synopsis">Synopsis</h2>
488-
<p>Adds a listener to an availability group on a SQL Server instance.</p>
488+
<p>Creates a network listener endpoint for an Availability Group to provide client connectivity</p>
489489
<h2 id="description">Description</h2>
490-
<p>Adds a listener to an availability group on a SQL Server instance.</p>
490+
<p>Creates a network listener endpoint that provides a virtual network name and IP address for clients to connect to an Availability Group. The listener automatically routes client connections to the current primary replica, eliminating the need for applications to track which server is currently hosting the primary database.</p>
491+
<p>This function supports both single-subnet and multi-subnet Availability Group configurations. You can specify static IP addresses for each subnet or use DHCP for automatic IP assignment. For multi-subnet deployments, specify multiple IP addresses and subnet masks to handle failover across geographically dispersed replicas.</p>
492+
<p>Use this when setting up new Availability Groups or when adding listeners to existing groups that don't have client connectivity configured yet. Without a listener, applications must connect directly to replica server names, which breaks during failover scenarios.</p>
491493
<h2 id="syntax">Syntax</h2>
492494
<pre><code>Add-DbaAgListener
493495
[[-SqlInstance] &lt;DbaInstanceParameter[]&gt;]
@@ -580,7 +582,8 @@ <h5 id="sqlcredential">-SqlCredential</h5>
580582
</tbody>
581583
</table>
582584
<h5 id="availabilitygroup">-AvailabilityGroup</h5>
583-
<p>The Availability Group to which a listener will be bestowed upon.<br></p>
585+
<p>Specifies the name of the Availability Group that will receive the listener. Use this when connecting directly to a SQL Server instance rather than piping from Get-DbaAvailabilityGroup.<br />
586+
Required when using the SqlInstance parameter to identify which AG on the server needs client connectivity.<br></p>
584587
<table>
585588
<thead>
586589
<tr>
@@ -608,8 +611,9 @@ <h5 id="availabilitygroup">-AvailabilityGroup</h5>
608611
</tbody>
609612
</table>
610613
<h5 id="name">-Name</h5>
611-
<p>The name of the listener. If one is not specified, the Availability Group name will be used.<br />
612-
Note that Name cannot be used with Multiple Ags.<br></p>
614+
<p>Specifies a custom network name for the listener that clients will use to connect. Defaults to the Availability Group name if not specified.<br />
615+
Use this when you need a different DNS name than your AG name, such as for application connection strings that can't be changed.<br />
616+
Cannot be used when processing multiple Availability Groups in a single operation.<br></p>
613617
<table>
614618
<thead>
615619
<tr>
@@ -637,7 +641,9 @@ <h5 id="name">-Name</h5>
637641
</tbody>
638642
</table>
639643
<h5 id="ipaddress">-IPAddress</h5>
640-
<p>Sets the IP address(es) of the availability group listener.<br></p>
644+
<p>Specifies one or more static IP addresses for the listener to use across different subnets. Each IP should correspond to a subnet where AG replicas are located.<br />
645+
Use this for multi-subnet deployments or when DHCP is not available in your network environment.<br />
646+
Cannot be combined with the Dhcp parameter.<br></p>
641647
<table>
642648
<thead>
643649
<tr>
@@ -665,7 +671,9 @@ <h5 id="ipaddress">-IPAddress</h5>
665671
</tbody>
666672
</table>
667673
<h5 id="subnetip">-SubnetIP</h5>
668-
<p>Sets the Subnet IP address(es) of the availability group listener.<br></p>
674+
<p>Specifies the network subnet addresses where the listener IPs will be configured. Auto-calculated from IPAddress and SubnetMask if not provided.<br />
675+
Use this when you need explicit control over subnet configuration or when auto-calculation produces incorrect results.<br />
676+
Must match the number of IP addresses specified, or provide a single subnet to apply to all IPs.<br></p>
669677
<table>
670678
<thead>
671679
<tr>
@@ -693,7 +701,9 @@ <h5 id="subnetip">-SubnetIP</h5>
693701
</tbody>
694702
</table>
695703
<h5 id="subnetmask">-SubnetMask</h5>
696-
<p>Sets the subnet IP mask(s) of the availability group listener. Defaults to 255.255.255.0.<br></p>
704+
<p>Defines the subnet mask for each listener IP address, controlling the network range. Defaults to 255.255.255.0 (/24).<br />
705+
Use this when your network uses non-standard subnet sizes or when configuring multi-subnet listeners with different mask requirements.<br />
706+
Must match the number of IP addresses, or provide a single mask to apply to all IPs.<br></p>
697707
<table>
698708
<thead>
699709
<tr>
@@ -721,7 +731,8 @@ <h5 id="subnetmask">-SubnetMask</h5>
721731
</tbody>
722732
</table>
723733
<h5 id="port">-Port</h5>
724-
<p>Sets the port number used to communicate with the availability group. Defaults to 1433.<br></p>
734+
<p>Specifies the TCP port number that clients will use to connect to the listener. Defaults to 1433.<br />
735+
Change this when your environment requires non-standard SQL Server ports due to security policies or port conflicts with other services.<br></p>
725736
<table>
726737
<thead>
727738
<tr>
@@ -749,7 +760,8 @@ <h5 id="port">-Port</h5>
749760
</tbody>
750761
</table>
751762
<h5 id="dhcp">-Dhcp</h5>
752-
<p>Indicates whether the listener uses DHCP.<br></p>
763+
<p>Configures the listener to obtain IP addresses automatically from DHCP rather than using static IPs. Simplifies network configuration when DHCP reservations are managed centrally.<br />
764+
Cannot be used with IPAddress parameter and requires single-subnet AG configurations only.<br></p>
753765
<table>
754766
<thead>
755767
<tr>
@@ -777,7 +789,8 @@ <h5 id="dhcp">-Dhcp</h5>
777789
</tbody>
778790
</table>
779791
<h5 id="passthru">-Passthru</h5>
780-
<p>Don't create the listener, just pass thru an object that can be further customized before creation.<br></p>
792+
<p>Returns the listener object without creating it on the server, allowing for additional configuration before calling Create().<br />
793+
Use this when you need to set advanced properties not exposed by this function's parameters before committing the listener to SQL Server.<br></p>
781794
<table>
782795
<thead>
783796
<tr>
@@ -805,7 +818,8 @@ <h5 id="passthru">-Passthru</h5>
805818
</tbody>
806819
</table>
807820
<h5 id="inputobject">-InputObject</h5>
808-
<p>Enables piping from Get-DbaAvailabilityGroup<br></p>
821+
<p>Accepts Availability Group objects from Get-DbaAvailabilityGroup through the pipeline, eliminating the need to specify SqlInstance and AvailabilityGroup parameters.<br />
822+
Use this approach when working with multiple AGs or when you need to filter AGs before creating listeners.<br></p>
809823
<table>
810824
<thead>
811825
<tr>

0 commit comments

Comments
 (0)