Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add help text
  • Loading branch information
DaeunYim committed May 4, 2021
commit 7b405c79a520cac7905d94c8ec515fd6b7356065
Original file line number Diff line number Diff line change
Expand Up @@ -318,3 +318,21 @@
- name: Show connection strings for cmd and programming languages.
text: az mysql flexible-server show-connection-string -s testServer -u username -p password -d databasename
"""

helps['mysql flexible-server deploy setup'] = """
type: command
short-summary: Create github action workflow file for MySQL server.
examples:
- name: Create github action workflow file for MySQL server.
text: az mysql flexible-server deploy setup -s testServer -g testGroup -u username -p password --sql-file test.sql --repo username/userRepo -d flexibleserverdb --action-name testAction
- name: Create github action workflow file for MySQL server and push it to the remote repository
text: az mysql flexible-server deploy setup -s testServer -g testGroup -u username -p password --sql-file test.sql --repo username/userRepo -d flexibleserverdb --action-name testAction --branch userBranch --allow-push
"""

helps['mysql flexible-server deploy run'] = """
type: command
short-summary: Run an existing workflow in your github repository
examples:
- name: Run an existing workflow in your github repository
text: az postgres deploy run --action-name testAction --branch userBranch
"""
20 changes: 19 additions & 1 deletion src/azure-cli/azure/cli/command_modules/rdbms/_helptext_pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
- name: Create a PostgreSQL flexible server using already existing virtual network and subnet. If provided virtual network and subnet does not exists then virtual network and subnet with default address prefix will be created.
text: |
az postgres flexible-server create --vnet myVnet --subnet mySubnet
- name: Create a PostgreSQL flexible server using already existing virtual network, subnet, and using the subnet ID. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to Microsoft.DBforMySQL/flexibleServers, if not already delegated.
- name: Create a PostgreSQL flexible server using already existing virtual network, subnet, and using the subnet ID. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to Microsoft.DBforPostgreSQL/flexibleServers, if not already delegated.
text: |
az postgres flexible-server create --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNetName}/subnets/{SubnetName}
- name: Create a PostgreSQL flexible server using new virtual network, subnet with non-default address prefix.
Expand Down Expand Up @@ -299,3 +299,21 @@
- name: Show connection strings for cmd and programming languages.
text: az postgres flexible-server show-connection-string -s testServer -u username -p password -d databasename
"""

helps['postgres flexible-server deploy setup'] = """
type: command
short-summary: Create github action workflow file for PostgreSQL server.
examples:
- name: Create github action workflow file for PostgreSQL server.
text: az postgres flexible-server deploy setup -s testServer -g testGroup -u username -p password --sql-file test.sql --repo username/userRepo -d flexibleserverdb --action-name testAction
- name: Create github action workflow file for PostgreSQL server and push it to the remote repository
text: az postgres flexible-server deploy setup -s testServer -g testGroup -u username -p password --sql-file test.sql --repo username/userRepo -d flexibleserverdb --action-name testAction --branch userBranch --allow-push
"""

helps['postgres flexible-server deploy run'] = """
type: command
short-summary: Run an existing workflow in your github repository
examples:
- name: Run an existing workflow in your github repository
text: az postgres deploy run --action-name testAction --branch userBranch
"""