[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.
One slight difference is for Tenant/MG/Sub level deployment the "location" property is required.
There was a problem hiding this comment.
Good catch. Will add a ScopedDeploymentWhatIf for the API version.
|
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
| ], | ||
| "description": "Deployment What-if operation parameters." | ||
| }, | ||
| "ScopedDeploymentWhatIf": { |
There was a problem hiding this comment.
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.
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.
Up to you. I'm fine if we split that into separate PRs. #Resolved
There was a problem hiding this comment.
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
majastrz
left a comment
There was a problem hiding this comment.
Added some comments. Can you take a look?
|
Azure Pipelines successfully started running 1 pipeline(s). |
* 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.