@@ -14656,68 +14656,59 @@ FirewallRuleName : Rule01</dev:code>
14656
14656
<command:relatedLinks></command:relatedLinks>
14657
14657
</command:command>
14658
14658
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
14659
- <command:details><command:name>Remove-AzureRmSqlDatabaseFailoverGroup </command:name>
14659
+ <command:details><command:name>Remove-AzureRmSqlDatabaseFromFailoverGroup </command:name>
14660
14660
<command:verb>Remove</command:verb>
14661
- <command:noun>AzureRmSqlDatabaseFailoverGroup </command:noun>
14662
- <maml:description><maml:para>The Cmdlet that removes the Azure SQL Failover Group
14661
+ <command:noun>AzureRmSqlDatabaseFromFailoverGroup </command:noun>
14662
+ <maml:description><maml:para>The Cmdlet that drops databases from the Azure SQL Failover Group.
14663
14663
</maml:para>
14664
14664
</maml:description>
14665
14665
</command:details>
14666
- <maml:description><maml:para>This command deletes all secondary databases included the FG and removes the FG object with the specified name from each participating server. The primary databases will become regular read-write databases. The listener endpoint will be unregistered from DNS.
14667
-
14666
+ <maml:description><maml:para>This command must be executed on the primary server. The command drops the corresponding secondary databases on all secondary servers and unregisters the read-write databases from the FG. The database input parameter is a Azure Sql Database Model and it should be either piped in or passed in as a environmental variable.
14668
14667
</maml:para>
14669
14668
</maml:description>
14670
- <command:syntax><command:syntaxItem><maml:name>Remove-AzureRmSqlDatabaseFailoverGroup </maml:name>
14671
- <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName )" position="0 " aliases="none"><maml:name>ResourceGroupName </maml:name>
14672
- <maml:Description><maml:para>The name of the resource group .
14669
+ <command:syntax><command:syntaxItem><maml:name>Remove-AzureRmSqlDatabaseFromFailoverGroup </maml:name>
14670
+ <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByValue )" position="named " aliases="none"><maml:name>Databases </maml:name>
14671
+ <maml:Description><maml:para>The Azure SQL Databases to be added to the secondary server .
14673
14672
</maml:para>
14674
14673
</maml:Description>
14675
- <command:parameterValue required="true" variableLength="false">String </command:parameterValue>
14676
- <dev:type><maml:name>String </maml:name>
14674
+ <command:parameterValue required="true" variableLength="false">System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel] </command:parameterValue>
14675
+ <dev:type><maml:name>System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel] </maml:name>
14677
14676
<maml:uri /></dev:type>
14678
14677
<dev:defaultValue>None</dev:defaultValue>
14679
14678
</command:parameter>
14680
- <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName )" position="1 " aliases="none"><maml:name>ServerName </maml:name>
14681
- <maml:Description><maml:para>The name of the Azure SQL Server the Failover Group is in .
14679
+ <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByValue )" position="named " aliases="none"><maml:name>FailoverGroupName </maml:name>
14680
+ <maml:Description><maml:para>The name of the Azure SQL Failover Group.
14682
14681
</maml:para>
14683
14682
</maml:Description>
14684
14683
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
14685
14684
<dev:type><maml:name>String</maml:name>
14686
14685
<maml:uri /></dev:type>
14687
14686
<dev:defaultValue>None</dev:defaultValue>
14688
14687
</command:parameter>
14689
- <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName)" position="2 " aliases="none"><maml:name>FailoverGroupName </maml:name>
14690
- <maml:Description><maml:para>The name of the Azure SQL Failover Group to remove .
14688
+ <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName)" position="named " aliases="none"><maml:name>ResourceGroupName </maml:name>
14689
+ <maml:Description><maml:para>The name of the resource group .
14691
14690
</maml:para>
14692
14691
</maml:Description>
14693
14692
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
14694
14693
<dev:type><maml:name>String</maml:name>
14695
14694
<maml:uri /></dev:type>
14696
14695
<dev:defaultValue>None</dev:defaultValue>
14697
14696
</command:parameter>
14698
- <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"><maml:name>Force</maml:name>
14699
- <maml:Description><maml:para>Skip confirmation message for performing the action
14700
- </maml:para>
14701
- </maml:Description>
14702
- <dev:type><maml:name>SwitchParameter</maml:name>
14703
- <maml:uri /></dev:type>
14704
- <dev:defaultValue>False</dev:defaultValue>
14705
- </command:parameter>
14706
- <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"><maml:name>PartnerResourceGroupName</maml:name>
14707
- <maml:Description><maml:para>The partner resource group name for Azure SQL Database Failover Group.
14697
+ <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName)" position="named" aliases="none"><maml:name>ServerName</maml:name>
14698
+ <maml:Description><maml:para>The name of the Azure SQL Server the Failover Group is in.
14708
14699
</maml:para>
14709
14700
</maml:Description>
14710
14701
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
14711
14702
<dev:type><maml:name>String</maml:name>
14712
14703
<maml:uri /></dev:type>
14713
14704
<dev:defaultValue>None</dev:defaultValue>
14714
14705
</command:parameter>
14715
- <command:parameter required="true " variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none "><maml:name>PartnerServerName </maml:name>
14716
- <maml:Description><maml:para>The partner server name for Azure SQL Database Failover Group.
14706
+ <command:parameter required="false " variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Tag "><maml:name>Tags </maml:name>
14707
+ <maml:Description><maml:para>The tag to associate with the Azure Sql Elastic Pool
14717
14708
</maml:para>
14718
14709
</maml:Description>
14719
- <command:parameterValue required="true" variableLength="false">String </command:parameterValue>
14720
- <dev:type><maml:name>String </maml:name>
14710
+ <command:parameterValue required="true" variableLength="false">Hashtable </command:parameterValue>
14711
+ <dev:type><maml:name>Hashtable </maml:name>
14721
14712
<maml:uri /></dev:type>
14722
14713
<dev:defaultValue>None</dev:defaultValue>
14723
14714
</command:parameter>
@@ -14739,57 +14730,48 @@ FirewallRuleName : Rule01</dev:code>
14739
14730
</command:parameter>
14740
14731
</command:syntaxItem>
14741
14732
</command:syntax>
14742
- <command:parameters><command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName )" position="2 " aliases="none"><maml:name>FailoverGroupName </maml:name>
14743
- <maml:Description><maml:para>The name of the Azure SQL Failover Group to remove .
14733
+ <command:parameters><command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByValue )" position="named " aliases="none"><maml:name>Databases </maml:name>
14734
+ <maml:Description><maml:para>The Azure SQL Databases to be added to the secondary server .
14744
14735
</maml:para>
14745
14736
</maml:Description>
14746
- <command:parameterValue required="true" variableLength="false">String </command:parameterValue>
14747
- <dev:type><maml:name>String </maml:name>
14737
+ <command:parameterValue required="true" variableLength="false">System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel] </command:parameterValue>
14738
+ <dev:type><maml:name>System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel] </maml:name>
14748
14739
<maml:uri /></dev:type>
14749
14740
<dev:defaultValue>None</dev:defaultValue>
14750
14741
</command:parameter>
14751
- <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"><maml:name>Force</maml:name>
14752
- <maml:Description><maml:para>Skip confirmation message for performing the action
14753
- </maml:para>
14754
- </maml:Description>
14755
- <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
14756
- <dev:type><maml:name>SwitchParameter</maml:name>
14757
- <maml:uri /></dev:type>
14758
- <dev:defaultValue>False</dev:defaultValue>
14759
- </command:parameter>
14760
- <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"><maml:name>PartnerResourceGroupName</maml:name>
14761
- <maml:Description><maml:para>The partner resource group name for Azure SQL Database Failover Group.
14742
+ <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="named" aliases="none"><maml:name>FailoverGroupName</maml:name>
14743
+ <maml:Description><maml:para>The name of the Azure SQL Failover Group.
14762
14744
</maml:para>
14763
14745
</maml:Description>
14764
14746
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
14765
14747
<dev:type><maml:name>String</maml:name>
14766
14748
<maml:uri /></dev:type>
14767
14749
<dev:defaultValue>None</dev:defaultValue>
14768
14750
</command:parameter>
14769
- <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False " position="named" aliases="none"><maml:name>PartnerServerName </maml:name>
14770
- <maml:Description><maml:para>The partner server name for Azure SQL Database Failover Group .
14751
+ <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName) " position="named" aliases="none"><maml:name>ResourceGroupName </maml:name>
14752
+ <maml:Description><maml:para>The name of the resource group .
14771
14753
</maml:para>
14772
14754
</maml:Description>
14773
14755
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
14774
14756
<dev:type><maml:name>String</maml:name>
14775
14757
<maml:uri /></dev:type>
14776
14758
<dev:defaultValue>None</dev:defaultValue>
14777
14759
</command:parameter>
14778
- <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName)" position="0 " aliases="none"><maml:name>ResourceGroupName </maml:name>
14779
- <maml:Description><maml:para>The name of the resource group .
14760
+ <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName)" position="named " aliases="none"><maml:name>ServerName </maml:name>
14761
+ <maml:Description><maml:para>The name of the Azure SQL Server the Failover Group is in .
14780
14762
</maml:para>
14781
14763
</maml:Description>
14782
14764
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
14783
14765
<dev:type><maml:name>String</maml:name>
14784
14766
<maml:uri /></dev:type>
14785
14767
<dev:defaultValue>None</dev:defaultValue>
14786
14768
</command:parameter>
14787
- <command:parameter required="true " variableLength="true" globbing="false" pipelineInput="True (ByPropertyName) " position="1 " aliases="none "><maml:name>ServerName </maml:name>
14788
- <maml:Description><maml:para>The name of the Azure SQL Server the Failover Group is in.
14769
+ <command:parameter required="false " variableLength="true" globbing="false" pipelineInput="False " position="named " aliases="Tag "><maml:name>Tags </maml:name>
14770
+ <maml:Description><maml:para>The tag to associate with the Azure Sql Elastic Pool
14789
14771
</maml:para>
14790
14772
</maml:Description>
14791
- <command:parameterValue required="true" variableLength="false">String </command:parameterValue>
14792
- <dev:type><maml:name>String </maml:name>
14773
+ <command:parameterValue required="true" variableLength="false">Hashtable </command:parameterValue>
14774
+ <dev:type><maml:name>Hashtable </maml:name>
14793
14775
<maml:uri /></dev:type>
14794
14776
<dev:defaultValue>None</dev:defaultValue>
14795
14777
</command:parameter>
@@ -14814,7 +14796,7 @@ FirewallRuleName : Rule01</dev:code>
14814
14796
</command:parameters>
14815
14797
<command:inputTypes><command:inputType><dev:type><maml:name>System.String</maml:name>
14816
14798
</dev:type>
14817
- <maml:description><maml:para>
14799
+ <maml:description><maml:para>System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.Commands.Sql, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null]]
14818
14800
</maml:para>
14819
14801
</maml:description>
14820
14802
</command:inputType>
@@ -14831,7 +14813,13 @@ FirewallRuleName : Rule01</dev:code>
14831
14813
</maml:alert>
14832
14814
</maml:alertSet>
14833
14815
<command:examples><command:example><maml:title>Example 1</maml:title>
14834
- <dev:code>PS C:\> PS C:\> Remove-AzureRmSqlDatabaseFailoverGroup -PrimaryResourceGroupName "myFG" -ServerName "myserver" -FailoverGroupName "myFG"</dev:code>
14816
+ <dev:code>PS C:\> Get-AzureRmSqlDatabase -ServerName testsvr -ResourceGroupName myrg2 -DatabaseName testdb | Remove-AzureRmSqlDatabaseFromFailoverGroup -FailoverGroupName testfg -ResourceGroupName rg2 -ServerName testsvr</dev:code>
14817
+ <dev:remarks><maml:para>
14818
+ </maml:para>
14819
+ </dev:remarks>
14820
+ </command:example>
14821
+ <command:example><maml:title>Example 2:</maml:title>
14822
+ <dev:code>PS C:\> Get-AzureRmSqlDatabase -ServerName testsvr -ResourceGroupName myrg2 | Remove-AzureRmSqlDatabaseFromFailoverGroup -FailoverGroupName testfg -ResourceGroupName rg2 -ServerName testsvr</dev:code>
14835
14823
<dev:remarks><maml:para>
14836
14824
</maml:para>
14837
14825
</dev:remarks>
0 commit comments