-
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
[Az.RecoveryServices.Backup] [8.0.0-preview] Adding autorest based commands equivalent for SDK based Policy commands in RecoveryServices module #21925
Conversation
🔄Az.RecoveryServices
|
95cb91b
to
9be5d9d
Compare
146b651
to
aca387d
Compare
We want to make our module hybrid. Adding autorest based policy cmdlets into generation branch. module - RecoveryServices.Backup. |
...p.Autorest/custom/Cmdlets/Policy/Edit-AzRecoveryServicesBackupSchedulePolicyClientObject.ps1
Show resolved
Hide resolved
...p.Autorest/custom/Cmdlets/Policy/Edit-AzRecoveryServicesBackupSchedulePolicyClientObject.ps1
Show resolved
Hide resolved
...p.Autorest/custom/Cmdlets/Policy/Edit-AzRecoveryServicesBackupSchedulePolicyClientObject.ps1
Show resolved
Hide resolved
....Autorest/custom/Cmdlets/Policy/Edit-AzrecoveryServicesBackupRetentionPolicyClientObject.ps1
Outdated
Show resolved
Hide resolved
...ecoveryServices.Backup.Autorest/custom/Cmdlets/Policy/New-AzRecoveryServicesBackupPolicy.ps1
Outdated
Show resolved
Hide resolved
src/RecoveryServices/RecoveryServices.Backup.Autorest/custom/Helpers/BackupScheduleHelpers.ps1
Outdated
Show resolved
Hide resolved
src/RecoveryServices/RecoveryServices.Backup.Autorest/custom/Helpers/BackupScheduleHelpers.ps1
Outdated
Show resolved
Hide resolved
@hiaga Please kindly refer to the doc https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/teams_docs/azps_docs/migrate_sdk_autorest regarding how to migrate from SDK based cmdlets to Autorest. Since it usually would cause breaking change, it would be rolled out during breaking change release only, which is Ignite 2023 for this year. (Generally twice a year around Build event and Ignite event). Please feel free to let me know if you have any question. Also cc @Alex-wdy |
@vidai-msft : We aren't removing any old SDK based commands here. We want to add new commands based on Autorest. |
@hiaga Thanks for the update. Can you please follow the link I shared and update the README.md file per that guide to generate Autorest based cmdlets? In addition, please remove the empty test files and fix the issues detected in StaticAnalysis and Test. Thanks! |
sure @vidai-msft, in that case can we remove Breaking change release tag |
/azp run azure-powershell - powershell-core |
Azure Pipelines successfully started running 1 pipeline(s). |
src/RecoveryServices/RecoveryServices.Backup.Autorest/Az.RecoveryServices.psd1
Outdated
Show resolved
Hide resolved
@hiaga The code freeze for this sprint is PST 6PM 6/26. If you want to have the change released on July 4, please make this PR ready before that. Let me know if you have any questions. Thanks! |
src/RecoveryServices/RecoveryServices.Backup.Autorest/README.md
Outdated
Show resolved
Hide resolved
...veryServices.Backup.Autorest/docs/Edit-AzRecoveryServicesBackupSchedulePolicyClientObject.md
Show resolved
Hide resolved
...veryServices.Backup.Autorest/docs/Edit-AzRecoveryServicesBackupSchedulePolicyClientObject.md
Show resolved
Hide resolved
630eec4
to
c6e1243
Compare
no we haven't removed any commands in the main branch yet. Our current SDK based latest module version is 6.5.0 We have a plan to release autorest based commands in a different preview series something like 8.0.0-preview. Any new features would preferably be released in this autorest series. Any hard fixes (mandatory, security fixes) will be released in SDK based versions for few months until we completely migrate. Our team had detailed discussion with PowerShell team on this, Let me share the email thread with more context. |
Please check following errors. If they are false positive, please suppress them by referring https://github.com/Azure/azure-powershell/blob/main/documentation/tooling/static-analysis.md#suppressing-exceptions. D:\a_work\1\s\artifacts//StaticAnalysisResults\ExampleIssues.csv Errors |
This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. |
9d06e77
to
eefe0fd
Compare
Added examples and test cases.
…m, Register-Container added examples and test cases
fa6967a
to
5f9d5b0
Compare
2cd8f27
into
Azure:generation-RecoveryServices-preview
Description
Added Autorest based commands for Az.RecoveryServices.
Checklist
CONTRIBUTING.md
and reviewed the following information:generation
branch.ChangeLog.md
file(s) appropriatelyChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header in the past tense. Add changelog in description section if PR goes intogeneration
branch.ChangeLog.md
if no new release is required, such as fixing test case only.