Skip to content
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

Adding API version 2023-01-15-preview for Failover Group resource type #22493

Conversation

charmainewkchan
Copy link
Contributor

@charmainewkchan charmainewkchan commented Feb 7, 2023

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, @charmainewkchan 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. vscswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 7, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️❌Breaking Change(Cross-Version): 6 Errors, 2 Warnings failed [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    activeDirectoryConnectors.json 2023-01-15-preview(830c2d6) 2022-06-15-preview(main)
    azurearcdata.json 2023-01-15-preview(830c2d6) 2021-11-01(main)
    azurearcdata.json 2023-01-15-preview(830c2d6) 2022-06-15-preview(main)
    common.json 2023-01-15-preview(830c2d6) 2021-11-01(main)
    common.json 2023-01-15-preview(830c2d6) 2022-06-15-preview(main)
    dataControllers.json 2023-01-15-preview(830c2d6) 2021-11-01(main)
    dataControllers.json 2023-01-15-preview(830c2d6) 2022-06-15-preview(main)
    operations.json 2023-01-15-preview(830c2d6) 2021-11-01(main)
    operations.json 2023-01-15-preview(830c2d6) 2022-06-15-preview(main)
    postgresInstances.json 2023-01-15-preview(830c2d6) 2022-06-15-preview(main)
    sqlManagedInstances.json 2023-01-15-preview(830c2d6) 2021-11-01(main)
    sqlManagedInstances.json 2023-01-15-preview(830c2d6) 2022-06-15-preview(main)
    sqlServerDatabases.json 2023-01-15-preview(830c2d6) 2022-06-15-preview(main)
    sqlServerInstances.json 2023-01-15-preview(830c2d6) 2021-11-01(main)
    sqlServerInstances.json 2023-01-15-preview(830c2d6) 2022-06-15-preview(main)

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

    Rule Message
    1011 - AddingResponseCode The new version adds a response code '202'.
    New: Microsoft.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L1067:11
    1026 - TypeChanged The new version has a different type '' than the previous one 'object'.
    New: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlManagedInstances.json#L175:7
    Old: Microsoft.AzureArcData/stable/2021-11-01/sqlManagedInstances.json#L164:7
    1026 - TypeChanged The new version has a different type '' than the previous one 'object'.
    New: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlManagedInstances.json#L175:7
    Old: Microsoft.AzureArcData/stable/2021-11-01/sqlManagedInstances.json#L164:7
    1044 - XmsLongRunningOperationChanged The new version has a different 'x-ms-longrunning-operation' value than the previous one.
    New: Microsoft.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L1031:7
    Old: Microsoft.AzureArcData/stable/2021-11-01/azurearcdata.json#L884:7
    1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlManagedInstances.json#L41:9
    Old: Microsoft.AzureArcData/stable/2021-11-01/sqlManagedInstances.json#L41:9
    1048 - AddedXmsEnum The new version adds a x-ms-enum extension.
    New: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlManagedInstances.json#L41:9
    Old: Microsoft.AzureArcData/stable/2021-11-01/sqlManagedInstances.json#L41:9


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

    Rule Message
    ⚠️ 1026 - TypeChanged The new version has a different type '' than the previous one 'object'.
    New: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlManagedInstances.json#L175:7
    Old: Microsoft.AzureArcData/preview/2022-06-15-preview/sqlManagedInstances.json#L175:7
    ⚠️ 1026 - TypeChanged The new version has a different type '' than the previous one 'object'.
    New: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlManagedInstances.json#L175:7
    Old: Microsoft.AzureArcData/preview/2022-06-15-preview/sqlManagedInstances.json#L175:7
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 3 Warnings warning [Detail]
    compared tags (via openapi-validator v2.0.0) new version base version
    package-preview-2023-01 package-preview-2023-01(830c2d6) default(main)

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

    Rule Message Related RPC [For API reviewers]
    ⚠️ 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: 'SqlManagedInstances_Create' Request Model: 'parameters[3].schema' Response Model: 'responses[200].schema'
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L178
    ⚠️ 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: 'FailoverGroups_Create' Request Model: 'parameters[2].schema' Response Model: 'responses[200].schema'
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L377
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/failoverGroups.json#L41


    The following errors/warnings exist before current PR submission:

    Rule Message
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'DataControllers' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L892
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'DataControllers' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L951
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'DataControllers' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L995
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'DataControllers' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L1035
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/activeDirectoryConnectors.json#L41
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/activeDirectoryConnectors.json#L157
    ⚠️ PutInOperationName 'PUT' operation 'DataControllers_PutDataController' 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.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L892
    ⚠️ PatchInOperationName 'PATCH' operation 'DataControllers_PatchDataController' should use method name 'Update'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/azurearcdata.json#L1035
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/common.json#L18
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/dataControllers.json#L26
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/dataControllers.json#L63
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/operations.json#L35
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/operations.json#L46
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/postgresInstances.json#L80
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/postgresInstances.json#L105
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlManagedInstances.json#L22
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlManagedInstances.json#L65
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L289
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L349
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L370
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L373
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L376
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L379
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L382
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L385
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L388
    ⚠️ 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.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L391
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlServerDatabases.json#L432
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.AzureArcData/preview/2023-01-15-preview/sqlServerInstances.json#L22
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️❌~[Staging] ServiceAPIReadinessTest: 19 Errors, 0 Warnings failed [Detail]

    Tag package-preview-2023-01; Prod region: Not deployed; Canary region: Deployed

    Test run on region: eastus2euap; Operation coverage: total: 38, untested: 0, failed: 19, passed: 19

    Service API Readiness Test failed. Check pipeline artifact for detail report.

    Rule Message
    SERVER_ERROR statusCode: 502,
    errorCode: ProviderError,
    errorMessage: Resource provider 'Microsoft.AzureArcData' failed to return collection response for type 'SqlServerInstances'.
    Source: runtime
    OperationId: SqlServerInstances_List
    SERVER_ERROR statusCode: 502,
    errorCode: ProviderError,
    errorMessage: Resource provider 'Microsoft.AzureArcData' failed to return collection response for type 'SqlServerInstances'.
    Source: runtime
    OperationId: SqlServerInstances_ListByResourceGroup
    CLIENT_ERROR statusCode: 400,
    errorCode: InvalidCustomLocation,
    errorMessage: The specified extended location name '/subscriptions/db5eb68e-73e2-4fa8-b18a-46cd1be4cce5/resourceGroups/apiTest-AbJUFo-22493/providers/Microsoft.ExtendedLocation/customLocations/arclocation' is invalid. The custom location was not found.
    Source: runtime
    OperationId: DataControllers_PutDataController
    CLIENT_ERROR statusCode: 404,
    errorCode: ResourceNotFound,
    errorMessage: The Resource 'Microsoft.AzureArcData/DataControllers/datacontutx3ln' under resource group 'apiTest-AbJUFo-22493' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
    Source: runtime
    OperationId: DataControllers_GetDataController
    CLIENT_ERROR statusCode: 404,
    errorCode: ResourceNotFound,
    errorMessage: The Resource 'Microsoft.AzureArcData/DataControllers/datacontutx3ln' under resource group 'apiTest-AbJUFo-22493' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
    Source: runtime
    OperationId: DataControllers_PatchDataController
    CLIENT_ERROR statusCode: 400,
    errorCode: InvalidRequestContent,
    errorMessage: The request content was invalid and could not be deserialized: 'Could not find member 'dev' on object of type 'ResourceSku'. Path 'sku.dev', line 13, position 10.'.
    Source: runtime
    OperationId: SqlManagedInstances_Create
    CLIENT_ERROR statusCode: 404,
    errorCode: ResourceNotFound,
    errorMessage: The Resource 'Microsoft.AzureArcData/SqlManagedInstances/sqlmanagh4u6um' under resource group 'apiTest-AbJUFo-22493' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
    Source: runtime
    OperationId: SqlManagedInstances_Get
    CLIENT_ERROR statusCode: 404,
    errorCode: ResourceNotFound,
    errorMessage: The Resource 'Microsoft.AzureArcData/SqlManagedInstances/sqlmanagh4u6um' under resource group 'apiTest-AbJUFo-22493' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
    Source: runtime
    OperationId: SqlManagedInstances_Update
    CLIENT_ERROR statusCode: 400,
    errorCode: InvalidRequestContent,
    errorMessage: The request content was invalid and could not be deserialized: 'Could not find member 'dev' on object of type 'ResourceSku'. Path 'sku.dev', line 90, position 10.'.
    Source: runtime
    OperationId: PostgresInstances_Create
    CLIENT_ERROR statusCode: 404,
    errorCode: ResourceNotFound,
    errorMessage: The Resource 'Microsoft.AzureArcData/PostgresInstances/postgresmhdk37' under resource group 'apiTest-AbJUFo-22493' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
    Source: runtime
    OperationId: PostgresInstances_Get
    CLIENT_ERROR statusCode: 404,
    errorCode: ResourceNotFound,
    errorMessage: The Resource 'Microsoft.AzureArcData/PostgresInstances/postgresmhdk37' under resource group 'apiTest-AbJUFo-22493' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
    Source: runtime
    OperationId: PostgresInstances_Update
    CLIENT_ERROR statusCode: 404,
    errorCode: ParentResourceNotFound,
    errorMessage: Can not perform requested operation on nested resource. Parent resource 'datacontutx3ln' not found.
    Source: runtime
    OperationId: ActiveDirectoryConnectors_Create
    CLIENT_ERROR statusCode: 404,
    errorCode: ParentResourceNotFound,
    errorMessage: Can not perform requested operation on nested resource. Parent resource 'datacontutx3ln' not found.
    Source: runtime
    OperationId: ActiveDirectoryConnectors_List
    CLIENT_ERROR statusCode: 404,
    errorCode: ParentResourceNotFound,
    errorMessage: Can not perform requested operation on nested resource. Parent resource 'datacontutx3ln' not found.
    Source: runtime
    OperationId: ActiveDirectoryConnectors_Get
    CLIENT_ERROR statusCode: 404,
    errorCode: ParentResourceNotFound,
    errorMessage: Can not perform requested operation on nested resource. Parent resource 'sqlmanagh4u6um' not found.
    Source: runtime
    OperationId: FailoverGroups_Create
    CLIENT_ERROR statusCode: 404,
    errorCode: ParentResourceNotFound,
    errorMessage: Can not perform requested operation on nested resource. Parent resource 'sqlmanagh4u6um' not found.
    Source: runtime
    OperationId: FailoverGroups_List
    CLIENT_ERROR statusCode: 404,
    errorCode: ParentResourceNotFound,
    errorMessage: Can not perform requested operation on nested resource. Parent resource 'sqlmanagh4u6um' not found.
    Source: runtime
    OperationId: FailoverGroups_Get
    CLIENT_ERROR statusCode: 404,
    errorCode: ParentResourceNotFound,
    errorMessage: Can not perform requested operation on nested resource. Parent resource 'sqlmanagh4u6um' not found.
    Source: runtime
    OperationId: FailoverGroups_Delete
    CLIENT_ERROR statusCode: 404,
    errorCode: ParentResourceNotFound,
    errorMessage: Can not perform requested operation on nested resource. Parent resource 'datacontutx3ln' not found.
    Source: runtime
    OperationId: ActiveDirectoryConnectors_Delete
    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️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.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 7, 2023

    Swagger Generation Artifacts

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

    Breaking Changes Tracking



    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 27cb61c. 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] npm notice
      cmderr	[automation_generate.sh] npm notice New minor version of npm available! 9.3.1 -> 9.5.1
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.5.1>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@9.5.1` to update!
      cmderr	[automation_generate.sh] npm notice
    • ️✔️track2_azure-mgmt-azurearcdata [View full logs]  [Release SDK Changes]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog]   - Added operation group FailoverGroupsOperations
      info	[Changelog]   - Added operation group SqlServerDatabasesOperations
      info	[Changelog]   - Model SqlServerInstanceProperties has a new parameter cores
    ️️✔️ azure-sdk-for-java succeeded [Detail] [Expand]
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 27cb61c. 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/azurearcdata/armazurearcdata [View full logs]  [Release SDK Changes]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog] - New value `ArcSQLServerLicenseTypeLicenseOnly`, `ArcSQLServerLicenseTypePAYG`, `ArcSQLServerLicenseTypeServerCAL` added to type alias `ArcSQLServerLicenseType`
      info	[Changelog] - New value `EditionTypeBusinessIntelligence` added to type alias `EditionType`
      info	[Changelog] - New value `HostTypeAWSKubernetesService`, `HostTypeAWSVMWareVirtualMachine`, `HostTypeAzureKubernetesService`, `HostTypeAzureVMWareVirtualMachine`, `HostTypeAzureVirtualMachine`, `HostTypeContainer`, `HostTypeGCPKubernetesService`, `HostTypeGCPVMWareVirtualMachine` added to type alias `HostType`
      info	[Changelog] - New type alias `DatabaseState` with values `DatabaseStateCopying`, `DatabaseStateEmergency`, `DatabaseStateOffline`, `DatabaseStateOfflineSecondary`, `DatabaseStateOnline`, `DatabaseStateRecovering`, `DatabaseStateRecoveryPending`, `DatabaseStateRestoring`, `DatabaseStateSuspect`
      info	[Changelog] - New type alias `FailoverGroupPartnerSyncMode` with values `FailoverGroupPartnerSyncModeAsync`, `FailoverGroupPartnerSyncModeSync`
      info	[Changelog] - New type alias `InstanceFailoverGroupRole` with values `InstanceFailoverGroupRoleForcePrimaryAllowDataLoss`, `InstanceFailoverGroupRoleForceSecondary`, `InstanceFailoverGroupRolePrimary`, `InstanceFailoverGroupRoleSecondary`
      info	[Changelog] - New type alias `ProvisioningState` with values `ProvisioningStateAccepted`, `ProvisioningStateCanceled`, `ProvisioningStateFailed`, `ProvisioningStateSucceeded`
      info	[Changelog] - New type alias `RecoveryMode` with values `RecoveryModeBulkLogged`, `RecoveryModeFull`, `RecoveryModeSimple`
      info	[Changelog] - New type alias `State` with values `StateFailed`, `StateSucceeded`, `StateWaiting`
      info	[Changelog] - New function `NewFailoverGroupsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*FailoverGroupsClient, error)`
      info	[Changelog] - New function `*FailoverGroupsClient.BeginCreate(context.Context, string, string, string, FailoverGroupResource, *FailoverGroupsClientBeginCreateOptions) (*runtime.Poller[FailoverGroupsClientCreateResponse], error)`
      info	[Changelog] - New function `*FailoverGroupsClient.BeginDelete(context.Context, string, string, string, *FailoverGroupsClientBeginDeleteOptions) (*runtime.Poller[FailoverGroupsClientDeleteResponse], error)`
      info	[Changelog] - New function `*FailoverGroupsClient.Get(context.Context, string, string, string, *FailoverGroupsClientGetOptions) (FailoverGroupsClientGetResponse, error)`
      info	[Changelog] - New function `*FailoverGroupsClient.NewListPager(string, string, *FailoverGroupsClientListOptions) *runtime.Pager[FailoverGroupsClientListResponse]`
      info	[Changelog] - New function `NewSQLServerDatabasesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*SQLServerDatabasesClient, error)`
      info	[Changelog] - New function `*SQLServerDatabasesClient.Create(context.Context, string, string, string, SQLServerDatabaseResource, *SQLServerDatabasesClientCreateOptions) (SQLServerDatabasesClientCreateResponse, error)`
      info	[Changelog] - New function `*SQLServerDatabasesClient.Delete(context.Context, string, string, string, *SQLServerDatabasesClientDeleteOptions) (SQLServerDatabasesClientDeleteResponse, error)`
      info	[Changelog] - New function `*SQLServerDatabasesClient.Get(context.Context, string, string, string, *SQLServerDatabasesClientGetOptions) (SQLServerDatabasesClientGetResponse, error)`
      info	[Changelog] - New function `*SQLServerDatabasesClient.NewListPager(string, string, *SQLServerDatabasesClientListOptions) *runtime.Pager[SQLServerDatabasesClientListResponse]`
      info	[Changelog] - New function `*SQLServerDatabasesClient.Update(context.Context, string, string, string, SQLServerDatabaseUpdate, *SQLServerDatabasesClientUpdateOptions) (SQLServerDatabasesClientUpdateResponse, error)`
      info	[Changelog] - New struct `AGReplicas`
      info	[Changelog] - New struct `ArcSQLServerDatabaseListResult`
      info	[Changelog] - New struct `FailoverGroupListResult`
      info	[Changelog] - New struct `FailoverGroupProperties`
      info	[Changelog] - New struct `FailoverGroupResource`
      info	[Changelog] - New struct `FailoverGroupSpec`
      info	[Changelog] - New struct `FailoverGroupStatus`
      info	[Changelog] - New struct `FailoverGroupsClient`
      info	[Changelog] - New struct `SQLServerDatabaseResource`
      info	[Changelog] - New struct `SQLServerDatabaseResourceProperties`
      info	[Changelog] - New struct `SQLServerDatabaseResourcePropertiesBackupInformation`
      info	[Changelog] - New struct `SQLServerDatabaseResourcePropertiesDatabaseOptions`
      info	[Changelog] - New struct `SQLServerDatabaseUpdate`
      info	[Changelog] - New struct `SQLServerDatabasesClient`
      info	[Changelog] - New field `Cores` in struct `SQLServerInstanceProperties`
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 83 additive change(s).
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 27cb61c. 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-azurearcdata [View full logs]  [Release SDK Changes]
      info	[Changelog]
      error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
    ️❌ azure-sdk-for-net failed [Detail]
    • Code Generator Failed [Logs]Release - Generate from 27cb61c. 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
      command	autorest --version=2.0.4421 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.csharp@2.3.82 --csharp-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/azurearcdata/resource-manager/readme.md
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] No usable version of the libssl was found
      cmderr	[Autorest] FATAL: csharp/simplifier - FAILED
      cmderr	[Autorest] FATAL: Error: [Exception] AutoRest extension '@microsoft.azure/autorest.csharp' terminated.
      cmderr	[Autorest] Process() cancelled due to exception : [Exception] AutoRest extension '@microsoft.azure/autorest.csharp' terminated.
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: autorest
      warn	Skip package processing as generation is failed
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 27cb61c. 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]  WARN 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
    • ️✔️azurearcdata [View full logs]  [Release Schema Changes]
    ️️✔️ azure-powershell succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 27cb61c. 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.Arc [View full logs]  [Release SDK Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 7, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Go sdk/resourcemanager/azurearcdata/armazurearcdata https://apiview.dev/Assemblies/Review/fe2e2bbc726340338ab4d3589a1b2076
    Java azure-resourcemanager-azurearcdata https://apiview.dev/Assemblies/Review/8df80ee928a94d04910ffa9e75113501
    JavaScript @azure/arm-azurearcdata https://apiview.dev/Assemblies/Review/5e77c55b8b574c37a77f8657a8660393

    @openapi-workflow-bot
    Copy link

    Hi @charmainewkchan, 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.
    Action: To initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.
    Note: To avoid breaking change, you can refer to Shift Left Solution for detecting breaking change in early phase at your service code repository.

    @openapi-workflow-bot
    Copy link

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

    @charmainewkchan
    Copy link
    Contributor Author

    charmainewkchan commented Feb 7, 2023

    Regarding these breaking changes:
    image
    The justification for each are here:

    1011: This response code is present in the previous api-version 2022-06-15-preview here, so I don’t believe it is a breaking change.

    1026: This change is to address these model validations errors. @Monica Adusumilli was advised to fix this in order to avoid requesting exceptions for this every time.

    1044: The previous 2022-06-15-preview version already had this change.

    1048: The previous 2022-06-15-preview version had this x-ms-enum extension.

    PR of these changes in azure-rest-api-specs-pr RPSaaSMaster branch: https://github.com/Azure/azure-rest-api-specs-pr/pull/10350

    Regarding "CI-MissingBaseCommit":
    The first commit copy and pastes the base 2022-06-15-preview version into the new 2023-01-15-preview folder.

    @charmainewkchan charmainewkchan marked this pull request as ready for review February 8, 2023 23:46
    @mikekistler mikekistler added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Feb 10, 2023
    @mikekistler
    Copy link
    Member

    Breaking change previously reviewed and approved in https://github.com/Azure/azure-rest-api-specs-pr/pull/10350

    @live1206 live1206 self-requested a review February 10, 2023 05:54
    @ruowan
    Copy link
    Member

    ruowan commented Feb 10, 2023

    /azp run

    @rkmanda rkmanda added the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Feb 15, 2023
    @openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Feb 15, 2023
    @charmainewkchan
    Copy link
    Contributor Author

    Thanks for the feedback @rkmanda. I pushed the changes addressing your comments.
    @live1206 for awareness to remove ARMChangesRequested tag.

    @live1206 live1206 removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Feb 23, 2023
    @openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Feb 23, 2023
    @openapi-workflow-bot
    Copy link

    Hi @charmainewkchan, 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.

    @charmainewkchan charmainewkchan requested review from zizw123 and removed request for live1206 February 24, 2023 17:28
    @NetRock NetRock added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label Feb 24, 2023
    @openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Feb 24, 2023
    @live1206 live1206 merged commit 27cb61c into Azure:main Mar 2, 2023
    aviyerMSFT pushed a commit to aviyerMSFT/azure-rest-api-specs that referenced this pull request Mar 22, 2023
    Azure#22493)
    
    * Adding base version
    
    * Updates API version in new specs and examples
    
    * Adds failover group resource type and examples
    
    * Add API version to readme
    
    * Resolve PR comments, added enums for provisoning state, and ms-identifiers for array
    
    * Address comments, expand property name, add descriptions, add enums when possible
    
    * Improve descriptions
    
    * Add azure-AsyncOperation header and mark public certificate as not a secret
    
    * Fix avocado parsing error
    
    * Revert property name to align with cluster properties, this property is not needed for customer's PUT request
    
    * Make additional property type any, and add to properties for metatdata
    
    ---------
    
    Co-authored-by: Charmaine Chan <chachan@microsoft.com>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required CI-MissingBaseCommit new-api-version ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test resource-manager RPaaS
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    8 participants