Skip to content

Commit

Permalink
Generate flexible server cmdlets
Browse files Browse the repository at this point in the history
  • Loading branch information
msJinLei committed Oct 22, 2020
1 parent 7b950cb commit 0b2f9c1
Show file tree
Hide file tree
Showing 74 changed files with 7,389 additions and 20 deletions.
91 changes: 90 additions & 1 deletion src/MySql/docs/Az.MySql.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.MySql
Module Guid: 71b613fa-1c6a-420e-976b-91de82d27c68
Module Guid: 0c9ad3d3-5d2e-4727-8628-71ff53cf49a2
Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.mysql
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -20,6 +20,36 @@ Get the connection string according to client connection provider.
### [Get-AzMySqlFirewallRule](Get-AzMySqlFirewallRule.md)
Gets information about a server firewall rule.

### [Get-AzMySqlFlexibleServer](Get-AzMySqlFlexibleServer.md)
Gets information about a server.

### [Get-AzMySqlFlexibleServerConfiguration](Get-AzMySqlFlexibleServerConfiguration.md)
List all the configurations in a given server.

### [Get-AzMySqlFlexibleServerDatabase](Get-AzMySqlFlexibleServerDatabase.md)
List all the databases in a given server.

### [Get-AzMySqlFlexibleServerFirewallRule](Get-AzMySqlFlexibleServerFirewallRule.md)
List all the firewall rules in a given server.

### [Get-AzMySqlFlexibleServerKey](Get-AzMySqlFlexibleServerKey.md)
Gets a server key.

### [Get-AzMySqlFlexibleServerReplica](Get-AzMySqlFlexibleServerReplica.md)
List all the replicas for a given server.

### [Get-AzMySqlFlexibleServersConfiguration](Get-AzMySqlFlexibleServersConfiguration.md)
Gets information about a configuration of server.

### [Get-AzMySqlFlexibleServersDatabase](Get-AzMySqlFlexibleServersDatabase.md)
Gets information about a database.

### [Get-AzMySqlFlexibleServersFirewallRule](Get-AzMySqlFlexibleServersFirewallRule.md)
Gets information about a server firewall rule.

### [Get-AzMySqlLocationBasedCapability](Get-AzMySqlLocationBasedCapability.md)
Get capabilities at specified location in a given subscription.

### [Get-AzMySqlReplica](Get-AzMySqlReplica.md)
List all the replicas for a given server.

Expand All @@ -29,9 +59,25 @@ Gets information about a server.
### [Get-AzMySqlVirtualNetworkRule](Get-AzMySqlVirtualNetworkRule.md)
Gets a virtual network rule.

### [Get-AzMySqlVirtualNetworkSubnetUsage](Get-AzMySqlVirtualNetworkSubnetUsage.md)
Get virtual network subnet usage for a given vNet resource id.

### [New-AzMySqlFirewallRule](New-AzMySqlFirewallRule.md)
Creates a new firewall rule or updates an existing firewall rule.

### [New-AzMySqlFlexibleServer](New-AzMySqlFlexibleServer.md)
Creates a new server or updates an existing server.
The update action will overwrite the existing server.

### [New-AzMySqlFlexibleServerDatabase](New-AzMySqlFlexibleServerDatabase.md)
Creates a new database or updates an existing database.

### [New-AzMySqlFlexibleServerFirewallRule](New-AzMySqlFlexibleServerFirewallRule.md)
Creates a new firewall rule or updates an existing firewall rule.

### [New-AzMySqlFlexibleServerKey](New-AzMySqlFlexibleServerKey.md)
Creates or updates a MySQL Server key.

### [New-AzMySqlReplica](New-AzMySqlReplica.md)
Creates a new replica from an existing database.

Expand All @@ -44,25 +90,68 @@ Creates or updates an existing virtual network rule.
### [Remove-AzMySqlFirewallRule](Remove-AzMySqlFirewallRule.md)
Deletes a server firewall rule.

### [Remove-AzMySqlFlexibleServer](Remove-AzMySqlFlexibleServer.md)
Deletes a server.

### [Remove-AzMySqlFlexibleServerKey](Remove-AzMySqlFlexibleServerKey.md)
Deletes the MySQL Server key with the given name.

### [Remove-AzMySqlFlexibleServersDatabase](Remove-AzMySqlFlexibleServersDatabase.md)
Deletes a database.

### [Remove-AzMySqlFlexibleServersFirewallRule](Remove-AzMySqlFlexibleServersFirewallRule.md)
Deletes a firewall rule.

### [Remove-AzMySqlServer](Remove-AzMySqlServer.md)
Deletes a server.

### [Remove-AzMySqlVirtualNetworkRule](Remove-AzMySqlVirtualNetworkRule.md)
Deletes the virtual network rule with the given name.

### [Restart-AzMySqlFlexibleServer](Restart-AzMySqlFlexibleServer.md)
Restarts a server.

### [Restart-AzMySqlServer](Restart-AzMySqlServer.md)
Restarts a server.

### [Restore-AzMySqlServer](Restore-AzMySqlServer.md)
Restore a server from an existing backup

### [Set-AzMySqlFlexibleServerDatabase](Set-AzMySqlFlexibleServerDatabase.md)
Creates a new database or updates an existing database.

### [Set-AzMySqlFlexibleServerFirewallRule](Set-AzMySqlFlexibleServerFirewallRule.md)
Creates a new firewall rule or updates an existing firewall rule.

### [Set-AzMySqlFlexibleServerKey](Set-AzMySqlFlexibleServerKey.md)
Creates or updates a MySQL Server key.

### [Start-AzMySqlFlexibleServer](Start-AzMySqlFlexibleServer.md)
Starts a server.

### [Stop-AzMySqlFlexibleServer](Stop-AzMySqlFlexibleServer.md)
Stops a server.

### [Test-AzMySqlFlexibleServersNameAvailability](Test-AzMySqlFlexibleServersNameAvailability.md)
Check the availability of name for server

### [Test-AzMySqlNameAvailability](Test-AzMySqlNameAvailability.md)
Check the availability of name for resource

### [Update-AzMySqlConfiguration](Update-AzMySqlConfiguration.md)
Updates a configuration of a server.
Use Update-AzMySqlServer instead if you want update AdministratorLoginPassword, sku, etc.

### [Update-AzMySqlFirewallRule](Update-AzMySqlFirewallRule.md)
Creates a new firewall rule or updates an existing firewall rule.

### [Update-AzMySqlFlexibleServer](Update-AzMySqlFlexibleServer.md)
Updates an existing server.
The request body can contain one to many of the properties present in the normal server definition.

### [Update-AzMySqlFlexibleServersConfiguration](Update-AzMySqlFlexibleServersConfiguration.md)
Updates a configuration of a server.

### [Update-AzMySqlServer](Update-AzMySqlServer.md)
Updates an existing server.
The request body can contain one to many of the properties present in the normal server definition.
Expand Down
1 change: 1 addition & 0 deletions src/MySql/docs/Get-AzMySqlConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ INPUTOBJECT <IMySqlIdentity>: Identity Parameter
- `[DatabaseName <String>]`: The name of the database.
- `[FirewallRuleName <String>]`: The name of the server firewall rule.
- `[Id <String>]`: Resource identity path
- `[KeyName <String>]`: The name of the server key.
- `[LocationName <String>]`: The name of the location.
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
- `[SecurityAlertPolicyName <SecurityAlertPolicyName?>]`: The name of the security alert policy.
Expand Down
1 change: 1 addition & 0 deletions src/MySql/docs/Get-AzMySqlFirewallRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ INPUTOBJECT <IMySqlIdentity>: Identity Parameter
- `[DatabaseName <String>]`: The name of the database.
- `[FirewallRuleName <String>]`: The name of the server firewall rule.
- `[Id <String>]`: Resource identity path
- `[KeyName <String>]`: The name of the server key.
- `[LocationName <String>]`: The name of the location.
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
- `[SecurityAlertPolicyName <SecurityAlertPolicyName?>]`: The name of the security alert policy.
Expand Down
173 changes: 173 additions & 0 deletions src/MySql/docs/Get-AzMySqlFlexibleServer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
---
external help file:
Module Name: Az.MySql
online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserver
schema: 2.0.0
---

# Get-AzMySqlFlexibleServer

## SYNOPSIS
Gets information about a server.

## SYNTAX

### List1 (Default)
```
Get-AzMySqlFlexibleServer [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### Get
```
Get-AzMySqlFlexibleServer -ResourceGroupName <String> -ServerName <String> [-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

### GetViaIdentity
```
Get-AzMySqlFlexibleServer -InputObject <IMySqlIdentity> [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### List
```
Get-AzMySqlFlexibleServer -ResourceGroupName <String> [-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Gets information about a server.

## EXAMPLES

### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
{{ Add output here }}
```

{{ Add description here }}

## PARAMETERS

### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.

```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity
Parameter Sets: GetViaIdentity
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
### -ResourceGroupName
The name of the resource group.
The name is case insensitive.
```yaml
Type: System.String
Parameter Sets: Get, List
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ServerName
The name of the server.
```yaml
Type: System.String
Parameter Sets: Get
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SubscriptionId
The ID of the target subscription.
```yaml
Type: System.String[]
Parameter Sets: Get, List, List1
Aliases:

Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Privatepreview.IServerAutoGenerated
## NOTES
ALIASES
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT <IMySqlIdentity>: Identity Parameter
- `[ConfigurationName <String>]`: The name of the server configuration.
- `[DatabaseName <String>]`: The name of the database.
- `[FirewallRuleName <String>]`: The name of the server firewall rule.
- `[Id <String>]`: Resource identity path
- `[KeyName <String>]`: The name of the server key.
- `[LocationName <String>]`: The name of the location.
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
- `[SecurityAlertPolicyName <SecurityAlertPolicyName?>]`: The name of the security alert policy.
- `[ServerName <String>]`: The name of the server.
- `[SubscriptionId <String>]`: The ID of the target subscription.
- `[VirtualNetworkRuleName <String>]`: The name of the virtual network rule.

## RELATED LINKS

Loading

0 comments on commit 0b2f9c1

Please sign in to comment.