-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Resources] Add support for MG and tenant level What-If #9942
[Resources] Add support for MG and tenant level What-If #9942
Conversation
[Staging] Swagger Validation Report
️✔️ |
Azure Pipelines successfully started running 1 pipeline(s). |
Azure CLI Extension Generation - Release
No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured
|
azure-sdk-for-go - Release
|
azure-sdk-for-java - Release
|
azure-sdk-for-js - Release
|
azure-sdk-for-python - Release
|
azure-sdk-for-net - Release
|
azure-sdk-for-python-track2 - Release
|
Trenton Generation - Release
No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured
|
Can one of the admins verify this patch? |
"in": "body", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/DeploymentWhatIf" |
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.
One slight difference is for Tenant/MG/Sub level deployment the "location" property is required.
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.
Good catch. Will add a ScopedDeploymentWhatIf
for the API version.
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.
Done.
Azure Pipelines successfully started running 1 pipeline(s). |
specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/resources.json
Outdated
Show resolved
Hide resolved
@@ -4384,6 +4511,23 @@ | |||
], | |||
"description": "Deployment What-if operation parameters." | |||
}, | |||
"ScopedDeploymentWhatIf": { |
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.
ScopedDeploymentWhatIf [](start = 5, length = 22)
This would also apply to the subscription scope /whatIf, right? If you do make that change, it will be flagged as a breaking change because linters will see an existing property becoming required. I would add a note that it was always required on the service side. #Resolved
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.
Yeah it also applies to subscription scope /whatif. I can make the change, which will fail the breaking change checker for sure. I remember Tian had to revert the change for 2019-07-01 for subscription scope /validate for that reason. I guess we'll have to ask for a bypass? #Resolved
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.
Up to you. I'm fine if we split that into separate PRs. #Resolved
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.
On second thought I think we should send a separate PR, since the existing sub-level deployment /validate and PUT APIs will also need to be updated. Besides, I'll need to do more investigation to make sure it's safe to update them, because it is unclear to me that if it will break the generated SDKs (I have a bad feeling about Python). #Resolved
specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json
Show resolved
Hide resolved
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.
Added some comments. Can you take a look?
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Signed off from ARM side.
* Add MG and tenant level What-If APIs * Add ScopedDeploymentWhatIf to 2019-07-01 * Revert 2019-07-01 and 2019-08-01
This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
Contribution checklist:
If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist
Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
Please follow the link to find more details on PR review process.