Skip to content

Conversation

HimanshuChhabra
Copy link
Member

@HimanshuChhabra HimanshuChhabra commented Nov 7, 2022

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:

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
  4. By default, Azure SDKs of all languages (.NET/Python/Java/JavaScript for both management-plane SDK and data-plane SDK, Go for management-plane SDK only ) MUST be refreshed with/after swagger of new version is published. If you prefer NOT to refresh any specific SDK language upon swagger updates in the current PR, please leave details with justification here.

Contribution checklist (MS Employees Only):

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

Applicability: ⚠️

If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

  • Change to data plane APIs
  • Adding new properties
  • All removals

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.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] 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.

@openapi-workflow-bot
Copy link

Hi, @HimanshuChhabra Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Nov 7, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️Breaking Change(Cross-Version): 47 Warnings warning [Detail]
    compared swaggers (via Oad v0.10.2)] new version base version
    blob.json 2022-09-01(64a8849) 2022-05-01(main)
    blob.json 2022-09-01(64a8849) 2020-08-01-preview(main)
    common.json 2022-09-01(64a8849) 2022-05-01(main)
    common.json 2022-09-01(64a8849) 2020-08-01-preview(main)
    file.json 2022-09-01(64a8849) 2022-05-01(main)
    file.json 2022-09-01(64a8849) 2020-08-01-preview(main)
    privatelinks.json 2022-09-01(64a8849) 2022-05-01(main)
    privatelinks.json 2022-09-01(64a8849) 2020-08-01-preview(main)
    queue.json 2022-09-01(64a8849) 2022-05-01(main)
    queue.json 2022-09-01(64a8849) 2020-08-01-preview(main)
    storage.json 2022-09-01(64a8849) 2022-05-01(main)
    storage.json 2022-09-01(64a8849) 2020-08-01-preview(main)
    table.json 2022-09-01(64a8849) 2022-05-01(main)
    table.json 2022-09-01(64a8849) 2020-08-01-preview(main)

    The following breaking changes are detected by comparison with the latest preview version:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L1233:13
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L950:13
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.Storage/stable/2022-09-01/common.json#L148:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4198:9
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L1291:13
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L1002:13
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L1334:13
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L1045:13
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'provisioning, deprovisioning, succeeded, failed, networkSourceDeleted' from the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L2899:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L2208:9
    ⚠️ 1025 - RequiredStatusChange The 'required' status changed from the old version('True') to the new version('False').
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L2801:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L2142:7
    ⚠️ 1025 - RequiredStatusChange The 'required' status changed from the old version('True') to the new version('False').
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L3047:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L2340:7
    ⚠️ 1025 - RequiredStatusChange The 'required' status changed from the old version('True') to the new version('False').
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5332:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4083:7
    ⚠️ 1025 - RequiredStatusChange The 'required' status changed from the old version('True') to the new version('False').
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5396:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4142:7
    ⚠️ 1025 - RequiredStatusChange The 'required' status changed from the old version('True') to the new version('False').
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5454:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4154:7
    ⚠️ 1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5337:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4088:9
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'format' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5396:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4142:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'schedule' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5396:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4142:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'objectType' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5396:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4142:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'schemaFields' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5396:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4142:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'format, schedule, objectType, schemaFields' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5382:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4129:9
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'destination' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5369:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4120:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'destination' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5355:11
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4105:11
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'destination' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5368:5
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4119:5
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'format, schedule, objectType, schemaFields' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L5395:5
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4141:5
    ⚠️ 1047 - XmsEnumChanged The new version has a different x-ms-enum 'modelAsString' than the previous one.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L3263:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L2471:9
    ⚠️ 1047 - XmsEnumChanged The new version has a different x-ms-enum 'modelAsString' than the previous one.
    New: Microsoft.Storage/stable/2022-09-01/storage.json#L2899:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L2208:9
    ⚠️ 1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.Storage/stable/2022-09-01/common.json#L34:11
    Old: Microsoft.Storage/preview/2020-08-01-preview/common.json#L34:11
    ⚠️ 1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.Storage/stable/2022-09-01/blob.json#L76:9
    ⚠️ 1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.Storage/stable/2022-09-01/blob.json#L122:9
    ⚠️ 1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.Storage/stable/2022-09-01/blob.json#L515:9
    ⚠️ 1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.Storage/stable/2022-09-01/blob.json#L576:9
    ⚠️ 1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.Storage/stable/2022-09-01/blob.json#L629:9
    ⚠️ 1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.Storage/stable/2022-09-01/blob.json#L1469:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/blob.json#L1328:9
    ⚠️ 1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.Storage/stable/2022-09-01/blob.json#L1531:5
    Old: Microsoft.Storage/preview/2020-08-01-preview/blob.json#L1386:5
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️❌LintDiff: 11 Errors, 6 Warnings failed [Detail]
    compared tags (via openapi-validator v2.0.0) new version base version
    package-2022-09 package-2022-09(64a8849) default(main)

    [must fix]The following errors/warnings are introduced by current PR:

    Rule Message Related RPC [For API reviewers]
    PutGetPatchResponseSchema /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/accountMigrations/{accountMigrationName} has different responses for PUT/GET/PATCH operations. The PUT/GET/PATCH operations must have same schema response.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L896
    ResourceNameRestriction The resource name parameter 'accountName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L896
    ResourceNameRestriction The resource name parameter 'accountMigrationName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L896
    SubscriptionsAndResourceGroupCasing The path segment resourcegroups should be resourceGroups.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L896
    CreateOperationAsyncResponseValidation An async PUT operation is tracked via Azure-AsyncOperation header. Set 'final-state-via' property to 'azure-async-operation' on 'x-ms-long-running-operation-options'
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L940
    CreateOperationAsyncResponseValidation An async PUT operation must return 201.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L977
    CreateOperationAsyncResponseValidation Only 201 is the supported response code for PUT async response.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L981
    LroLocationHeader A 202 response should include an Location response header.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L981
    MissingTypeObject The schema 'StorageAccountMigration' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L5491
    NestedResourcesMustHaveListOperation The nested resource 'StorageAccountMigration' does not have list operation, please add it.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L5491
    MissingTypeObject The schema 'StorageAccountMigrationProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L5508
    ⚠️ PutRequestResponseScheme A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'AccountMigrations_Put' Request Model: 'parameters[5].schema' Response Model: 'responses[200].schema'
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L940
    ⚠️ PutInOperationName 'PUT' operation 'AccountMigrations_Put' should use method name 'Create'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L944
    ⚠️ LroStatusCodesReturnTypeSchema 200/201 Responses of long running operations must have a schema definition for return type. OperationId: 'AccountMigrations_Put', Response code: '200'
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L978
    ⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L3937
    ⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L3942
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.Storage/stable/2022-09-01/storage.json#L5493


    The following errors/warnings exist before current PR submission:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    ResourceNameRestriction The resource name parameter 'accountName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L19
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L45
    PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L58
    ResourceNameRestriction The resource name parameter 'accountName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L58
    ResourceNameRestriction The resource name parameter 'BlobServicesName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L58
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L102
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L139
    GetCollectionResponseSchema The response in the GET collection operation 'BlobContainers_List' does not match the response definition in the individual GET operation 'BlobContainers_Get' .
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L149
    ResourceNameRestriction The resource name parameter 'accountName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L149
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L204
    ResourceNameRestriction The resource name parameter 'accountName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L217
    ResourceNameRestriction The resource name parameter 'containerName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L217
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L261
    UnSupportedPatchProperties The patch operation body parameter schema should not contains property name.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L297
    UnSupportedPatchProperties The patch operation body parameter schema should not contains property type.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L297
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L313
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L354
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L391
    ResourceNameRestriction The resource name parameter 'accountName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L401
    ResourceNameRestriction The resource name parameter 'containerName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L401
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L442
    ResourceNameRestriction The resource name parameter 'accountName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L452
    ResourceNameRestriction The resource name parameter 'containerName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L452
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L490
    ResourceNameRestriction The resource name parameter 'accountName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L500
    ResourceNameRestriction The resource name parameter 'containerName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L500
    ResourceNameRestriction The resource name parameter 'immutabilityPolicyName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L500
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L550
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L603
    DeleteOperationResponses The delete operation is defined without a 200 or 204 error response implementation,please add it.'
    Location: Microsoft.Storage/stable/2022-09-01/blob.json#L656
    ️️✔️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.Storage' for api version '2022-09-01'. The supported api-versions are '2022-05-01,
    2021-09-01,
    2021-08-01,
    2021-06-01,
    2021-05-01,
    2021-04-01,
    2021-02-01,
    2021-01-01,
    2020-08-01-preview,
    2019-06-01,
    2019-04-01,
    2018-11-01,
    2018-07-01,
    2018-03-01-preview,
    2018-02-01,
    2017-10-01,
    2017-06-01,
    2016-12-01,
    2016-05-01,
    2016-01-01,
    2015-06-15,
    2015-05-01-preview'."
    ️🔄~[Staging] ServiceAPIReadinessTest inProgress [Detail]
    ️❌ModelValidation: 10 Errors, 0 Warnings failed [Detail]
    Rule Message
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/blob.json#L863:22
    ExampleUrl: stable/2022-09-01/examples/ObjectLevelWormContainerMigration.json
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/storage.json#L783:22
    ExampleUrl: stable/2022-09-01/examples/StorageAccountFailover.json
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/storage.json#L783:22
    ExampleUrl: stable/2022-09-01/examples/StorageAccountFailoverPlanned.json
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/storage.json#L830:22
    ExampleUrl: stable/2022-09-01/examples/StorageAccountHierarchicalNamespaceMigration.json
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/storage.json#L876:22
    ExampleUrl: stable/2022-09-01/examples/StorageAccountAbortHierarchicalNamespaceMigration.json
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/blob.json#L863:22
    ExampleUrl: stable/2022-09-01/examples/ObjectLevelWormContainerMigration.json
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/storage.json#L783:22
    ExampleUrl: stable/2022-09-01/examples/StorageAccountFailover.json
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/storage.json#L783:22
    ExampleUrl: stable/2022-09-01/examples/StorageAccountFailoverPlanned.json
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/storage.json#L830:22
    ExampleUrl: stable/2022-09-01/examples/StorageAccountHierarchicalNamespaceMigration.json
    LRO_RESPONSE_HEADER Long running operation should return location or azure-AsyncOperation in header but not provided
    Url: Microsoft.Storage/stable/2022-09-01/storage.json#L876:22
    ExampleUrl: stable/2022-09-01/examples/StorageAccountAbortHierarchicalNamespaceMigration.json
    ️️✔️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.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Nov 7, 2022

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️❌SDK Breaking Change Tracking failed [Detail]

    Breaking Changes Tracking

    azure-sdk-for-go - sdk/resourcemanager/storage/armstorage - 2.0.0
    +	Struct `CloudErrorBody` has been removed
    +	Struct `CloudError` has been removed
    azure-sdk-for-python-track2 - track2_azure-mgmt-storage - 20.1.0
    +	Operation EncryptionScopesOperations.list has a new parameter filter
    +	Operation EncryptionScopesOperations.list has a new parameter include
    +	Operation EncryptionScopesOperations.list has a new parameter maxpagesize
    +	Operation StorageAccountsOperations.begin_failover has a new parameter failover_type

    ️❌ azure-sdk-for-net-track2 failed [Detail]
    • Failed [Logs] Generate from f4ab706f3ea21acda3bce36b55aa1ac4d272b304. SDK Automation 14.0.0
      command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
      warn	File azure-sdk-for-net_tmp/initOutput.json not found to read
      command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:611
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m 611 | �[0m         �[96mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m     | �[91m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91m�[96m     | �[91mFailed to generate sdk. exit code: False
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:698
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m 698 | �[0m … rtifacts += �[96mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m     | �[91m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91m�[96m     | �[91mCannot find path
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m     | �[91m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because it does not exist.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:611
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m 611 | �[0m         �[96mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m     | �[91m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91m�[96m     | �[91mFailed to generate sdk artifact
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    • Azure.ResourceManager.Storage [View full logs]  [Preview SDK Changes]
      info	[Changelog]
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs] Generate from f4ab706f3ea21acda3bce36b55aa1ac4d272b304. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      cmderr	[automation_generate.sh]
      cmderr	[automation_generate.sh] npm notice New patch version of npm available! 8.19.2 -> 8.19.3
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.19.3>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
      cmderr	[automation_generate.sh] npm notice
    • ️✔️track2_azure-mgmt-storage [View full logs]  [Preview SDK Changes] Breaking Change Detected
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog]   - Added operation group AccountMigrationsOperations
      info	[Changelog]   - Model ManagementPolicyBaseBlob has a new parameter tier_to_cold
      info	[Changelog]   - Model ManagementPolicyBaseBlob has a new parameter tier_to_hot
      info	[Changelog]   - Model ManagementPolicySnapShot has a new parameter tier_to_cold
      info	[Changelog]   - Model ManagementPolicySnapShot has a new parameter tier_to_hot
      info	[Changelog]   - Model ManagementPolicyVersion has a new parameter tier_to_cold
      info	[Changelog]   - Model ManagementPolicyVersion has a new parameter tier_to_hot
      info	[Changelog]   - Model StorageAccount has a new parameter account_migration_in_progress
      info	[Changelog]   - Model StorageAccount has a new parameter is_sku_conversion_blocked
      info	[Changelog]
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog]   - Operation EncryptionScopesOperations.list has a new parameter filter
      info	[Changelog]   - Operation EncryptionScopesOperations.list has a new parameter include
      info	[Changelog]   - Operation EncryptionScopesOperations.list has a new parameter maxpagesize
      info	[Changelog]   - Operation StorageAccountsOperations.begin_failover has a new parameter failover_type
    ️⚠️ azure-sdk-for-java warning [Detail]
    • ⚠️Warning [Logs] Generate from f4ab706f3ea21acda3bce36b55aa1ac4d272b304. SDK Automation 14.0.0
      command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
      cmderr	[init.sh] [notice] A new release of pip available: 22.3 -> 22.3.1
      cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
      cmderr	[init.sh] [notice] A new release of pip available: 22.3 -> 22.3.1
      cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
      command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
      warn	No file changes detected after generation
      warn	No package detected after generation
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from f4ab706f3ea21acda3bce36b55aa1ac4d272b304. SDK Automation 14.0.0
      command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️sdk/resourcemanager/storage/armstorage [View full logs]  [Preview SDK Changes] Breaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Struct `CloudError` has been removed
      info	[Changelog] - Struct `CloudErrorBody` has been removed
      info	[Changelog]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog] - New const `TargetSKUNameStandardRAGZRS`
      info	[Changelog] - New const `MigrationStatusInProgress`
      info	[Changelog] - New const `MigrationStatusSubmittedForConversion`
      info	[Changelog] - New const `TargetSKUNameStandardGRS`
      info	[Changelog] - New const `TargetSKUNameStandardGZRS`
      info	[Changelog] - New const `ListEncryptionScopesIncludeAll`
      info	[Changelog] - New const `MigrationStatusInvalid`
      info	[Changelog] - New const `TargetSKUNameStandardRAGRS`
      info	[Changelog] - New const `TargetSKUNameStandardZRS`
      info	[Changelog] - New const `MigrationStatusComplete`
      info	[Changelog] - New const `TargetSKUNameStandardLRS`
      info	[Changelog] - New const `MigrationStatusFailed`
      info	[Changelog] - New const `ListEncryptionScopesIncludeDisabled`
      info	[Changelog] - New const `ListEncryptionScopesIncludeEnabled`
      info	[Changelog] - New const `AccountMigrationNameDefault`
      info	[Changelog] - New type alias `TargetSKUName`
      info	[Changelog] - New type alias `MigrationStatus`
      info	[Changelog] - New type alias `AccountMigrationName`
      info	[Changelog] - New type alias `ListEncryptionScopesInclude`
      info	[Changelog] - New function `*AccountMigrationsClient.BeginPut(context.Context, string, string, AccountMigrationName, AccountMigration, *AccountMigrationsClientBeginPutOptions) (*runtime.Poller[AccountMigrationsClientPutResponse], error)`
      info	[Changelog] - New function `*AccountMigrationsClient.Get(context.Context, string, string, AccountMigrationName, *AccountMigrationsClientGetOptions) (AccountMigrationsClientGetResponse, error)`
      info	[Changelog] - New function `PossibleMigrationStatusValues() []MigrationStatus`
      info	[Changelog] - New function `PossibleAccountMigrationNameValues() []AccountMigrationName`
      info	[Changelog] - New function `PossibleListEncryptionScopesIncludeValues() []ListEncryptionScopesInclude`
      info	[Changelog] - New function `PossibleTargetSKUNameValues() []TargetSKUName`
      info	[Changelog] - New function `NewAccountMigrationsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*AccountMigrationsClient, error)`
      info	[Changelog] - New struct `AccountMigration`
      info	[Changelog] - New struct `AccountMigrationProperties`
      info	[Changelog] - New struct `AccountMigrationsClient`
      info	[Changelog] - New struct `AccountMigrationsClientBeginPutOptions`
      info	[Changelog] - New struct `AccountMigrationsClientGetOptions`
      info	[Changelog] - New struct `AccountMigrationsClientGetResponse`
      info	[Changelog] - New struct `AccountMigrationsClientPutResponse`
      info	[Changelog] - New field `Filter` in struct `EncryptionScopesClientListOptions`
      info	[Changelog] - New field `Include` in struct `EncryptionScopesClientListOptions`
      info	[Changelog] - New field `Maxpagesize` in struct `EncryptionScopesClientListOptions`
      info	[Changelog] - New field `FailoverType` in struct `AccountsClientBeginFailoverOptions`
      info	[Changelog] - New field `TierToHot` in struct `ManagementPolicyBaseBlob`
      info	[Changelog] - New field `TierToCold` in struct `ManagementPolicyBaseBlob`
      info	[Changelog] - New field `AccountMigrationInProgress` in struct `AccountProperties`
      info	[Changelog] - New field `IsSKUConversionBlocked` in struct `AccountProperties`
      info	[Changelog] - New field `TierToCold` in struct `ManagementPolicySnapShot`
      info	[Changelog] - New field `TierToHot` in struct `ManagementPolicySnapShot`
      info	[Changelog] - New field `TierToCold` in struct `ManagementPolicyVersion`
      info	[Changelog] - New field `TierToHot` in struct `ManagementPolicyVersion`
      info	[Changelog]
      info	[Changelog] Total 4 breaking change(s), 46 additive change(s).
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from f4ab706f3ea21acda3bce36b55aa1ac4d272b304. SDK Automation 14.0.0
      command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
      warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
      command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
    • ️✔️@azure/arm-storage [View full logs]  [Preview SDK Changes]
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Added operation group AccountMigrations
      info	[Changelog]   - Added Interface AccountMigrationsGetOptionalParams
      info	[Changelog]   - Added Interface AccountMigrationsPutOptionalParams
      info	[Changelog]   - Added Interface StorageAccountMigration
      info	[Changelog]   - Added Interface StorageAccountMigrationProperties
      info	[Changelog]   - Added Type Alias AccountMigrationName
      info	[Changelog]   - Added Type Alias AccountMigrationsGetResponse
      info	[Changelog]   - Added Type Alias ListEncryptionScopesInclude
      info	[Changelog]   - Added Type Alias MigrationStatus
      info	[Changelog]   - Added Type Alias TargetSkuName
      info	[Changelog]   - Interface EncryptionScopesListNextOptionalParams has a new optional parameter filter
      info	[Changelog]   - Interface EncryptionScopesListNextOptionalParams has a new optional parameter include
      info	[Changelog]   - Interface EncryptionScopesListNextOptionalParams has a new optional parameter maxpagesize
      info	[Changelog]   - Interface EncryptionScopesListOptionalParams has a new optional parameter filter
      info	[Changelog]   - Interface EncryptionScopesListOptionalParams has a new optional parameter include
      info	[Changelog]   - Interface EncryptionScopesListOptionalParams has a new optional parameter maxpagesize
      info	[Changelog]   - Interface ManagementPolicyBaseBlob has a new optional parameter tierToCold
      info	[Changelog]   - Interface ManagementPolicyBaseBlob has a new optional parameter tierToHot
      info	[Changelog]   - Interface ManagementPolicySnapShot has a new optional parameter tierToCold
      info	[Changelog]   - Interface ManagementPolicySnapShot has a new optional parameter tierToHot
      info	[Changelog]   - Interface ManagementPolicyVersion has a new optional parameter tierToCold
      info	[Changelog]   - Interface ManagementPolicyVersion has a new optional parameter tierToHot
      info	[Changelog]   - Interface StorageAccount has a new optional parameter accountMigrationInProgress
      info	[Changelog]   - Interface StorageAccount has a new optional parameter isSkuConversionBlocked
      info	[Changelog]   - Class StorageManagementClient has a new parameter accountMigrations
      info	[Changelog]   - Added Enum KnownAccountMigrationName
      info	[Changelog]   - Added Enum KnownListEncryptionScopesInclude
      info	[Changelog]   - Added Enum KnownMigrationStatus
      info	[Changelog]   - Added Enum KnownTargetSkuName
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs] Generate from f4ab706f3ea21acda3bce36b55aa1ac4d272b304. Schema Automation 14.0.0
      command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
      cmderr	[initScript.sh]  old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    • ️✔️storage [View full logs]  [Preview Schema Changes]
    ️️✔️ azure-powershell succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from f4ab706f3ea21acda3bce36b55aa1ac4d272b304. SDK Automation 14.0.0
      command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
      command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
    • ️✔️Az.Storage [View full logs]  [Preview SDK Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Nov 7, 2022

    Generated ApiView

    Language Package Name ApiView Link
    Go sdk/resourcemanager/storage/armstorage Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.
    JavaScript @azure/arm-storage Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.
    Python track2_azure-mgmt-storage Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.

    @ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Nov 7, 2022
    @AzureRestAPISpecReview AzureRestAPISpecReview added ARMReview CI-FixRequiredOnFailure resource-manager WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Nov 7, 2022
    @openapi-workflow-bot
    Copy link

    Hi @HimanshuChhabra, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @openapi-workflow-bot
    Copy link

    Hi, @HimanshuChhabra, 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

    @@ -5530,6 +5540,9 @@
    }
    }
    },
    "required": [
    Copy link
    Member

    @blueww blueww Nov 9, 2022

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    If we add "targetRegion" support in the future, will "targetSkuName" still be required? (Since with before parameter description, seems the 2 parameters can't be used together.)

    Please note it will be breaking change to change a required parameter to optional, and will need Azure’s Breaking Change Review Board review. See details in the last page of Breaking Change Policy

    @jianyexi
    Copy link
    Contributor

    jianyexi commented Nov 9, 2022

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    @HimanshuChhabra
    Copy link
    Member Author

    Created a new PR - #21500

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ARMReview CI-BreakingChange-Go CI-FixRequiredOnFailure CI-MissingBaseCommit new-api-version resource-manager Storage Storage Service (Queues, Blobs, Files) WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    4 participants