-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate flexible server cmdlets #13269
Conversation
require: | ||
- $(this-folder)/../readme.azure.noprofile.md | ||
input-file: | ||
- $(repo)/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/mysql.json | ||
- $(repo)/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/ServerSecurityAlertPolicies.json | ||
- $(repo)/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also include these as well?
- Microsoft.DBforPostgreSQL/stable/2018-06-01/PrivateEndpointConnections.json
- Microsoft.DBforPostgreSQL/stable/2018-06-01/PrivateLinkResources.json
- Microsoft.DBforPostgreSQL/stable/2020-01-01/DataEncryptionKeys.json
These are single server APIs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to add PrivateEndpointConnections.json, PrivateLinkResources.json, DataEncryptionKeys.json in Microsoft.DBforMySQL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I meant, including those json files to the input file section to enable the missing single server commands. I can work on it later after adding flexible-server functionality
set: | ||
verb: Update | ||
- where: | ||
subject: Database$|SecurityAlertPolicy$|Administrator$|LocationBasedPerformanceTier$|LogFile$|ExecuteCheckNameAvailability$ | ||
subject: ^Database$|^LocationBasedPerformanceTier$|^LogFile$|SecurityAlertPolicy$|Administrator$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mentioned this in the follow-up email as well but could you kindly explain to me why we are hiding these cmdlets? We have equivalent commands to these in CLI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These cmdlets are not in high priority. Our team has limited resources and so we first implement the most important cmdlets and then gradually add more thing according to the user feedback.
module-version: 0.1.0 | ||
title: MySQL | ||
subject-prefix: 'MySQL' | ||
|
||
directive: | ||
- from: mysql.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need PG flexible server as well..! Could you do the same generation for postgresql as well?
Single server"input-file:
- Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json
- Microsoft.DBforPostgreSQL/stable/2017-12-01/ServerSecurityAlertPolicies.json
- Microsoft.DBforPostgreSQL/stable/2018-06-01/PrivateEndpointConnections.json
- Microsoft.DBforPostgreSQL/stable/2018-06-01/PrivateLinkResources.json
- Microsoft.DBforPostgreSQL/stable/2020-01-01/DataEncryptionKeys.json
flexible server
input-file:
- Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we will do the same thing for postgresql. But let's firstly try everything in mysql and ensure them to work and then we are migrate them to postgresql quickly.
* Generate flexible server cmdlets (#13269) * test commit with server mgmt md files * cmdlet design draft * fixed errors for mysql md files * fixed errors for mysql md files * fixing mistakes * resolved comments * mysql cmdlets customization verified * mysql modified * postgres customized cmdlets and readme * mysql postgres customized cmdlets and docs * initial commit for mysql pg module * mysql test success * pg module * postgresql cmdlet update test fixed * example document fixed * Revert "example document fixed" This reverts commit 6c60dbf. * align single server test with flexible server * docs fixed * docs files moved from exports to upper folder * typo fixed * revert postgresql * configuration fixed * cred scan added * cred scan issue resolved * Regenerate doc of the MySql * comments resolved Co-authored-by: Jin Lei <[email protected]> Co-authored-by: msJinLei <[email protected]>
* Generate flexible server cmdlets (#13269) * test commit with server mgmt md files * cmdlet design draft * fixed errors for mysql md files * fixed errors for mysql md files * fixing mistakes * resolved comments * mysql cmdlets customization verified * mysql modified * postgres customized cmdlets and readme * mysql postgres customized cmdlets and docs * initial commit for mysql pg module * mysql test success * pg module * postgresql cmdlet update test fixed * example document fixed * Revert "example document fixed" This reverts commit 6c60dbf. * align single server test with flexible server * docs fixed * docs files moved from exports to upper folder * typo fixed * revert postgresql * configuration fixed * cred scan added * cred scan issue resolved * Regenerate doc of the MySql * comments resolved * synopsis and description added * Fix MySql doc issues * Revert examples/New-AzMySqlVirtualNetworkRule.md incorrect change * Update doc/*.md Co-authored-by: Jin Lei <[email protected]> Co-authored-by: msJinLei <[email protected]>
…lexibleServerLocationBasedCapability (#13717) * Generate flexible server cmdlets (#13269) * test commit with server mgmt md files * cmdlet design draft * fixed errors for mysql md files * fixed errors for mysql md files * fixing mistakes * resolved comments * mysql cmdlets customization verified * mysql modified * postgres customized cmdlets and readme * mysql postgres customized cmdlets and docs * initial commit for mysql pg module * mysql test success * pg module * postgresql cmdlet update test fixed * example document fixed * Revert "example document fixed" This reverts commit 6c60dbf. * align single server test with flexible server * docs fixed * docs files moved from exports to upper folder * typo fixed * revert postgresql * configuration fixed * cred scan added * cred scan issue resolved * Regenerate doc of the MySql * comments resolved * initial network commit * create customization * test record * utils issue fixed * test ci fix * CI failure fix * testing CI fix * CI test faliure fixing * CI test fix final * new server doc fix * mysql comments resolved * comments resolved * CI test fixed * Remove skip in test cases * testing env config fixed * testing env config fixed * test fixed with flexible arguments * location changed from westus2 to eastus2euap * resource group name changed * customized server object for creation cmdlet * Update FlexibleServer.cs Fixed typo * dynamically assign a server name for live testing * dynamically assign live test variables * if else case consistent Co-authored-by: Jin Lei <[email protected]> Co-authored-by: msJinLei <[email protected]>
…t-AzPostgreSqlFlexibleServerLocationBasedCapability (#13716) * Generate flexible server cmdlets (#13269) * test commit with server mgmt md files * cmdlet design draft * fixed errors for mysql md files * fixed errors for mysql md files * fixing mistakes * resolved comments * mysql cmdlets customization verified * mysql modified * postgres customized cmdlets and readme * mysql postgres customized cmdlets and docs * initial commit for mysql pg module * mysql test success * pg module * postgresql cmdlet update test fixed * example document fixed * Revert "example document fixed" This reverts commit 6c60dbf. * align single server test with flexible server * docs fixed * docs files moved from exports to upper folder * typo fixed * reverted mysql flexible server * configuration update doc resolved * cred scan fixed * copied from generation branch * Fix the format of cmdlet help files * Fixed bugs * comments resolved * initial commit for customization * test recorded * test pass fix * utils CI fix * CI test fix * postgresql comments resolved * minor fix for location capabilities * CI fixed * utils included * test fixed for live testing * customized server object * dynamically assign server name for live testing * dynamically assign live test variables * if else case consistent * comments resolved * change autorest version Co-authored-by: Jin Lei <[email protected]> Co-authored-by: msJinLei <[email protected]>
Description
Checklist
CONTRIBUTING.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added