-
Notifications
You must be signed in to change notification settings - Fork 335
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
add sku option for sqldatabase #291
Conversation
Replace the old non functionnal option **Edition** by the **SKU** Dict
Co-authored-by: Fred-sun <[email protected]>
@guyomog78 Can you help tests/integration/the targets/azure_rm_sqlserver/tasks/main yml increase test cases? Thank you very much! |
@Fred-sun Like make a test with the S0 mode and ensure that realy is a S0 mode, then change to P1 mode ensure that is well a P1?? someting like that? |
yes! Thanks! |
OK, did you have an ETA in mind? |
Ensure that the sku name is name as requested - use current_service_objective_name instead of sku.name - sku.name is too generic Add validation test for SKU usage
@Fred-sun, it was a little bit more difficulte as expected, but necessary to correct the sqldatabasinfo too to report the good SKU like documentation say. To see current information: |
@guyomog78 Such parameter changes may cause the edition parameter previously configured by the user to be unavailable. Can the following two methods be used to avoid this problem? First: Add Fail prompt. After this version, the edition parameter is changed to sku, and sku aliase is changed to sku. Second: Keep the edition parameter, but set the default value and "mutually_exclusive=['edition', 'sku']", for example, when edition: Standard, the default sku.name=S1, and edition: premium, the default sku.name=P1. |
@Fred-sun t it is a while that the edition parameter is not functionnal, but I understand your point of view. I will try to keep for this time the edition parameters |
- edition still present, but finally use arbitrary SKU - choice edition or Sku - update test to test edition too on first test - remember to remove next version
@Fred-sun It's Done!! On test file, I have injected Edition value Premium and it's good. I have tested with standard too ;-) et Voilà! PS: Feel free to update the version where edition will be full removed |
@Fred-sun Thanks a lot for review. |
SUMMARY
Change the non functional edition option to a functional sku option.
Partial Fixes #153 Unable to specify a SKU
Fixes #126
ISSUE TYPE
COMPONENT NAME
azure_rm_sqldatabase.py
azure_rm_sqldatabase_info.py
ADDITIONAL INFORMATION
The Sku option use the Python Sku class from azure.mgmt.sql.models to be able to push valide values.
The documentation is updated with the new SKU call option
The internal test to detect change is updated (replace edition by sku)
The sku entrie is then identical as the azure_rm_sqldatabase_info report
example call before change
example call after change
or with more options
example call after change
Attention All option under sku should be coherent with the name value else an error is reported