-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New stable API version 2022-12-12 for CORS deviceprovisioningservices microsoft.devices #21737
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
New stable API version 2022-12-12 for CORS deviceprovisioningservices microsoft.devices #21737
Conversation
Hi, @fmjosuel Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected] |
Hi, @fmjosuel your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board([email protected]). |
Swagger Validation Report
|
compared swaggers (via Oad v0.10.4)] | new version | base version |
---|---|---|
iotdps.json | 2022-12-12(5fa7a04) | 2022-02-05(main) |
iotdps.json | 2022-12-12(5fa7a04) | 2020-09-01-preview(main) |
The following breaking changes are detected by comparison with the latest stable version:
Rule | Message |
---|---|
1023 - TypeFormatChanged |
The new version has a different format than the previous one. New: Microsoft.Devices/stable/2022-12-12/iotdps.json#L2303:9 Old: Microsoft.Devices/stable/2022-02-05/iotdps.json#L2291:9 |
1026 - TypeChanged |
The new version has a different type 'integer' than the previous one 'string'. New: Microsoft.Devices/stable/2022-12-12/iotdps.json#L2303:9 Old: Microsoft.Devices/stable/2022-02-05/iotdps.json#L2291:9 |
The following breaking changes are detected by comparison with the latest preview version:
️️✔️
CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌
LintDiff: 2 Errors, 0 Warnings failed [Detail]
compared tags (via openapi-validator v2.0.0) | new version | base version |
---|---|---|
package-2022-12 | package-2022-12(5fa7a04) | default(main) |
[must fix]The following errors/warnings are introduced by current PR:
Rule | Message | Related RPC [For API reviewers] |
---|---|---|
BodyTopLevelProperties |
Top level properties should be one of name, type, id, location, properties, tags, plan, sku, etag, managedBy, identity, zones. Model definition 'ProvisioningServiceDescription' has extra properties ['resourcegroup']. Location: Microsoft.Devices/stable/2022-12-12/iotdps.json#L1786 |
RPC-Put-V1-06 |
BodyTopLevelProperties |
Top level properties should be one of name, type, id, location, properties, tags, plan, sku, etag, managedBy, identity, zones. Model definition 'ProvisioningServiceDescription' has extra properties ['subscriptionid']. Location: Microsoft.Devices/stable/2022-12-12/iotdps.json#L1786 |
RPC-Put-V1-06 |
The following errors/warnings exist before current PR submission:
Only 30 items are listed, please refer to log for more details.
️️✔️
Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️❌
ApiReadinessCheck: 1 Errors, 0 Warnings failed [Detail]
Rule | Message |
---|---|
API Readiness check failed. Please make sure your service is deployed. |
"code: InvalidResourceType, message: The resource type 'operations' could not be found in the namespace 'Microsoft.Devices' for api version '2022-12-12'. The supported api-versions are '2015-08-15-preview, 2016-02-03, 2017-01-19, 2017-07-01, 2018-01-22, 2018-04-01, 2018-12-01-preview, 2019-03-22-preview, 2019-03-22, 2019-07-01-preview, 2019-11-04, 2020-03-01, 2020-04-01, 2020-06-15, 2020-07-10-preview, 2020-08-01, 2020-08-31-preview, 2020-08-31, 2021-02-01-preview, 2021-03-03-preview, 2021-03-31, 2021-07-01-preview, 2021-07-01, 2021-07-02-preview, 2021-07-02, 2022-04-30-preview'." |
️❌
~[Staging] ServiceAPIReadinessTest: 46 Errors, 0 Warnings failed [Detail]
Tag package-2022-12; Prod region: Not deployed; Canary region: Deployed
Test run on region: eastus2euap; Operation coverage: total: 24, untested: 0, failed: 23, passed: 1
Service API Readiness Test failed. Check pipeline artifact for detail report.
Only 30 items are listed, please refer to log for more details.
Rule | Message |
---|---|
CLIENT_ERROR |
statusCode: 400, errorCode: NoRegisteredProviderFound, errorMessage: No registered resource provider found for location 'eastus2euap' and API version '2022-12-12' for type 'ProvisioningServices'. The supported api-versions are '2017-08-21-preview, 2017-11-15, 2018-01-22, 2020-01-01, 2020-03-01, 2021-10-15, 2022-02-05, 2022-08-07-preview'. The supported locations are 'westus, australiacentral2, australiasoutheast, canadaeast, centralus, eastus, francesouth, koreasouth, japanwest, southindia, southeastasia, westeurope, uksouth, southcentralus, australiacentral, australiaeast, brazilsouth, canadacentral, centralindia, eastasia, francecentral, japaneast, koreacentral, northeurope, ukwest, westus2, westcentralus, northcentralus, eastus2, germanywestcentral, uaenorth, eastus2euap, centraluseuap'. Source: runtime OperationId: IotDpsResource_CreateOrUpdate |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_CreateOrUpdate |
CLIENT_ERROR |
statusCode: 404, errorCode: InvalidResourceType, errorMessage: The resource type 'ProvisioningServices' could not be found in the namespace 'Microsoft.Devices' for api version '2022-12-12'. The supported api-versions are '2017-08-21-preview,2017-11-15,2018-01-22,2020-01-01,2020-03-01,2021-10-15,2022-02-05,2022-08-07-preview'. Source: runtime OperationId: IotDpsResource_ListBySubscription |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_ListBySubscription |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/provisio25lz1n' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: IotDpsResource_Get |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_Get |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/resourcevyln2e' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: IotDpsResource_GetPrivateLinkResources |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_GetPrivateLinkResources |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/resourcevyln2e' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: IotDpsResource_ListPrivateEndpointConnections |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_ListPrivateEndpointConnections |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/resourcevyln2e' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: IotDpsResource_ListPrivateLinkResources |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_ListPrivateLinkResources |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/provisio25lz1n' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: IotDpsResource_listValidSkus |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_listValidSkus |
CLIENT_ERROR |
statusCode: 404, errorCode: InvalidResourceType, errorMessage: The resource type 'ProvisioningServices' could not be found in the namespace 'Microsoft.Devices' for api version '2022-12-12'. The supported api-versions are '2017-08-21-preview,2017-11-15,2018-01-22,2020-01-01,2020-03-01,2021-10-15,2022-02-05,2022-08-07-preview'. Source: runtime OperationId: IotDpsResource_ListByResourceGroup |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_ListByResourceGroup |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/provisio25lz1n' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: IotDpsResource_GetOperationResult |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_GetOperationResult |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/provisio25lz1n' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: IotDpsResource_Update |
INVALID_RESPONSE_CODE |
The swagger file does not define '404' response code Source: response OperationId: IotDpsResource_Update |
CLIENT_ERROR |
statusCode: 404, errorCode: InvalidResourceType, errorMessage: The resource type 'checkProvisioningServiceNameAvailability' could not be found in the namespace 'Microsoft.Devices' for api version '2022-12-12'. The supported api-versions are '2017-08-21-preview,2017-11-15,2018-01-22,2020-01-01,2020-03-01,2021-10-15,2022-02-05'. Source: runtime OperationId: IotDpsResource_CheckProvisioningServiceNameAvailability |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_CheckProvisioningServiceNameAvailability |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/provisio25lz1n' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: IotDpsResource_ListKeys |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_ListKeys |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/provisio25lz1n' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: IotDpsResource_ListKeysForKeyName |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: IotDpsResource_ListKeysForKeyName |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/provisio25lz1n' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: DpsCertificate_CreateOrUpdate |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: DpsCertificate_CreateOrUpdate |
CLIENT_ERROR |
statusCode: 404, errorCode: ResourceNotFound, errorMessage: The Resource 'Microsoft.Devices/ProvisioningServices/provisio25lz1n' under resource group 'apiTest-pecxWC-21737' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix Source: runtime OperationId: DpsCertificate_List |
OBJECT_ADDITIONAL_PROPERTIES |
Additional properties not allowed: error Source: response OperationId: DpsCertificate_List |
️️✔️
~[Staging] SwaggerAPIView succeeded [Detail] [Expand]
️️✔️
~[Staging] CadlAPIView succeeded [Detail] [Expand]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️
PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️
CadlValidation succeeded [Detail] [Expand]
Validation passes for CadlValidation.
️️✔️
PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
Swagger Generation Artifacts
|
Generated ApiView
|
Hi @fmjosuel, Your PR has some issues. Please fix the CI sequentially by following the order of
|
Hi, @fmjosuel, For review efficiency consideration, when creating a new api version, it is required to place API specs of the base version in the first commit, and push new version updates into successive commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki. Or you could onboard API spec pipeline |
Hi @fmjosuel, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review. |
@@ -0,0 +1,2571 @@ | |||
{ |
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.
There is one more PR, with a different new API version than this: #21736. That also similar changes, which one to review?
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, please ignore the #21736 one (closed).
Also for context. The changes in this API version have already been approved in a private preview version. But we were not able to publish the changes to the public repo. As a result we were asked (by OpenAPI support) to create another PR manually in public repo.
Ask: can we leverage that previous approval to expedite review on this pull request? We had gone through breaking change review as well. Here is the PR that was approved: https://github.com/Azure/azure-rest-api-specs-pr/pull/8870
Please advise.
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.
Any update on the above? @visingla-ms
We would like to move along with this since it is a dependency for two features launch for us. Thank you!
"provisioningState": { | ||
"description": "The ARM provisioning state of the provisioning service.", | ||
"type": "string" | ||
}, |
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.
You are recommended to model provisioningState using an enum.
"subscriptionid": { | ||
"type": "string", | ||
"description": "The subscription id of the resource." | ||
}, |
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.
'resourcegroup' and 'subscriptionid' these are nonstandard casing. You should camelCase property names in your API. You probably won't fix it if you already return the properties like this per s360, but just going to call that out...
"type": "string", | ||
"x-ms-parameter-location": "method" | ||
}, | ||
"groupId": { |
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.
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.
As you can see I have a bunch of feedback, but its not really ARM review blockers per se. You might want to discuss when is the right time to fix RPC violations with breaking changes reviewers -- since it will possibly be needed to fix certain bugs you find out about later. |
Approved private preview PR link: https://github.com/Azure/azure-rest-api-specs-pr/pull/8870 |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Commenting here for context to everyone - These changes have already been cleared for breaking change review in private preview (see merged PR here). But we had an issue promoting the changes to a public GA API and were suggested to start the GA api version manually (thus this current PR). |
Specific reference to the breaking change review: https://github.com/Azure/azure-rest-api-specs-pr/pull/8519#issuecomment-1251842254 |
…-12 for CORS deviceprovisioningservices microsoft.devices (#2756) Create to sync Azure/azure-rest-api-specs#21737 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...azure-sdk:sdkAuto/deviceprovisioningservices?expand=1)
ARM API Information (Control Plane)
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo. If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.
Changelog
Add a changelog entry for this PR by answering the following questions:
Dec 16, 2022
Dec 09, 2022
Contribution checklist (MS Employees Only):
If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist
Otherwise your PR may be subject to ARM review requirements. Complete the following:
Check this box if any of the following apply to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review. Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki.
Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.
If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Breaking Change Review Checklist
If you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Additional details on the process and office hours are on the Breaking Change Wiki.
NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)
Please follow the link to find more details on PR review process.