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

Release api management 2023 09 01 preview #29024

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

solankisamir
Copy link
Member

ARM (Control Plane) API Specification Update Pull Request

Tip

Overwhelmed by all this guidance? See the Getting help section at the bottom of this PR description.

PR review workflow diagram

Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

spec_pr_review_workflow_diagram

Purpose of this PR

What's the purpose of this PR? Check the specific option that applies. This is mandatory!

  • New resource provider.
  • New API version for an existing resource provider. (If API spec is not defined in TypeSpec, the PR should have been created in adherence to OpenAPI specs PR creation guidance).
  • Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
  • Update existing version to fix OpenAPI spec quality issues in S360.
  • Other, please clarify:
    • edit this with your clarification

Due diligence checklist

To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

  • I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data plane related specifications.
  • I have reviewed following Resource Provider guidelines, including
    ARM resource provider contract and
    REST guidelines (estimated time: 4 hours).
    I understand this is required before I can proceed to the diagram Step 2, "ARM API changes review", for this PR.

Additional information

Viewing API changes

For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures

If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.

Getting help

  • First, please carefully read through this PR description, from top to bottom. Please fill out the Purpose of this PR and Due diligence checklist.
  • To understand what you must do next to merge this PR, see the Next Steps to Merge comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.
  • For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
    and https://aka.ms/ci-fix.
  • For help with ARM review (PR workflow diagram Step 2), see https://aka.ms/azsdk/pr-arm-review.
  • If the PR CI checks appear to be stuck in queued state, please add a comment with contents /azp run.
    This should result in a new comment denoting a PR validation pipeline has started and the checks should be updated after few minutes.
  • If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

solankisamir and others added 9 commits January 3, 2024 07:35
…023-05-01-preview to version 2023-09-01-preview
* WIP

* Update sample

* WIP

* Add GatewayNameParameter

* Clean up

* Update sample

* Add another sample

* Add sample for delete gateway

* Remove endpoints

* Fix typo

* Add list sample

* Clean up

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Add disclaimer

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Make it pretty 💄

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Refer to new file

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Add missing ApiManagementGatewayListResult

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update sample reference

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Remove ApiManagementGatewayIdentity + List by operation

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Add more sample

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Latest version of common types

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Remove 200 for delete

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Formatting and re-order

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Align with spec

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Align sample with spec

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Error response from common types

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Rename SKU name

* Have seperate SKU for patch to not make it mandatory

* Remove empty required

* Improve note

* Rename schema

* Remove unused type

* sku.capacity should not be required

---------

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
)

* Add loggers to workspaces

* Add diagnostics to workspace

* Add certificates to workspace

* Add backends to workspaces

* Change DiagnosticContract to DiagnosticContractProperties in patch

* Revert back DiagnosticContractProperties to DiagnosticContract

* Fix CI and add files to readme

* Fix example

* remove reconnect endpoint

* Add suppressions

* Try different suppression where

* Try different suppression

* Try other suppression

* another test

* finally working suppression

* remove unwanted line
* md cb contract

* modify pool contract

* correct the limits

---------

Co-authored-by: Samir Solanki <samirsolanki@outlook.com>
* add operation statuses resource

* fix api-version
Copy link

openapi-pipeline-app bot commented May 8, 2024

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ This PR is in purview of the ARM review (label: ARMReview). This PR must get ARMSignedOff label from an ARM reviewer.
    This PR is not ready for ARM review (label: NotReadyForARMReview). This PR will not be reviewed by ARM until relevant problems are fixed. Consult the rest of this Next Steps to Merge comment for details.
    Once the blocking problems are addressed, add to the PR a comment with contents /azp run. Automation will re-evaluate this PR and if everything looks good, it will add WaitForARMFeedback label which will put this PR on the ARM review queue.
    For details of the ARM review, see aka.ms/azsdk/pr-arm-review
  • ❌ This PR is NotReadyForARMReview because it has the BreakingChangeReviewRequired label.
  • ❌ This PR has at least one breaking change (label: BreakingChangeReviewRequired).
    To unblock this PR, follow the process at aka.ms/brch.
  • ❌ The required check named Breaking Change(Cross-Version) has failed. To unblock this PR, follow the process at aka.ms/brch.

Copy link

openapi-pipeline-app bot commented May 8, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 409 Errors, 11 Warnings failed [Detail]
Compared specs (v0.10.8) new version base version
apimallpolicies.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimanagement.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimanagement.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimapis.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimapis.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimapisByTags.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimapisByTags.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimapiversionsets.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimapiversionsets.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimauthorizationproviders.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimauthorizationproviders.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimauthorizationservers.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimauthorizationservers.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimbackends.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimbackends.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimcaches.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimcaches.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimcertificates.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimcertificates.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimconnectivitycheck.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimconnectivitycheck.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimcontenttypes.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimcontenttypes.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimdeletedservices.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimdeletedservices.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimdeployment.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimdeployment.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimdiagnostics.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimdiagnostics.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimdocumentations.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimdocumentations.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimemailtemplates.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimemailtemplates.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimgateways.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimgateways.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimgroups.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimgroups.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimidentityprovider.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimidentityprovider.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimissues.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimissues.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimloggers.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimloggers.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimnamedvalues.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimnamedvalues.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimnetworkstatus.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimnetworkstatus.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimnotifications.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimnotifications.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimopenidconnectproviders.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimopenidconnectproviders.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimoutbounddependency.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimoutbounddependency.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimpolicies.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimpolicies.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimpolicydescriptions.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimpolicydescriptions.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimpolicyfragments.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimpolicyfragments.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimpolicyrestrictions.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimpolicyrestrictionsvalidation.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimportalconfigs.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimportalconfigs.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimportalrevisions.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimportalrevisions.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimportalsettings.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimportalsettings.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimprivatelink.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimprivatelink.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimproducts.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimproducts.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimproductsByTags.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimproductsByTags.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimquotas.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimquotas.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimregions.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimregions.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimreports.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimreports.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimschema.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimschema.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimsettings.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimsettings.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimskus.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimskus.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimsubscriptions.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimsubscriptions.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimtagresources.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimtagresources.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimtags.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimtags.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimtenant.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimtenant.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimusers.json 2023-09-01-preview(18bed31) 2022-08-01(main)
apimusers.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
apimworkspaces.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)
definitions.json 2023-09-01-preview(18bed31) 2022-08-01(main)
definitions.json 2023-09-01-preview(18bed31) 2023-05-01-preview(main)

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

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

Rule Message
1011 - AddingResponseCode The new version adds a response code '202'.
New: Microsoft.ApiManagement/preview/2023-09-01-preview/apimapis.json#L459:11
1011 - AddingResponseCode The new version adds a response code '202'.
New: Microsoft.ApiManagement/preview/2023-09-01-preview/apimusers.json#L388:11
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.ApiManagement/preview/2023-09-01-preview/apimapis.json#L52:9
Old: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L52:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.ApiManagement/preview/2023-09-01-preview/apimapis.json#L125:9
Old: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L125:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.ApiManagement/preview/2023-09-01-preview/apimapis.json#L177:9
Old: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L177:9


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

Only 5 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: common-types/resource-management/v5/types.json#L307:9
Old: Microsoft.ApiManagement/preview/2023-05-01-preview/apimanagement.json#L59:9
⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: common-types/resource-management/v5/types.json#L282:11
Old: Microsoft.ApiManagement/preview/2023-05-01-preview/apimanagement.json#L80:11
⚠️ 1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: common-types/resource-management/v5/types.json#L264:9
Old: Microsoft.ApiManagement/preview/2023-05-01-preview/apimanagement.json#L70:9
⚠️ 1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: common-types/resource-management/v5/types.json#L269:9
Old: Microsoft.ApiManagement/preview/2023-05-01-preview/apimanagement.json#L74:9
⚠️ 1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: common-types/resource-management/v5/types.json#L264:9
Old: Microsoft.ApiManagement/preview/2023-05-01-preview/apimanagement.json#L41:9
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 10 Warnings warning [Detail]
Compared specs (v2.2.2) new version base version
package-preview-2023-09 package-preview-2023-09(18bed31) default(main)

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

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

Rule Message Related RPC [For API reviewers]
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.ApiManagement/preview/2023-09-01-preview/apimworkspacebackends.json#L37
RPC-Get-V1-11
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.ApiManagement/preview/2023-09-01-preview/apimworkspacecertificates.json#L37
RPC-Get-V1-11
⚠️ 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.ApiManagement/preview/2023-09-01-preview/apimworkspacecertificates.json#L72
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.ApiManagement/preview/2023-09-01-preview/apimworkspacediagnostics.json#L37
RPC-Get-V1-11
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.ApiManagement/preview/2023-09-01-preview/apimworkspacediagnostics.json#L391
RPC-Get-V1-11


The following errors/warnings exist before current PR submission:

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

Rule Message
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.ApiManagement/preview/2023-09-01-preview/apimapis.json#L96
PutRequestResponseSchemeArm 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: 'Api_CreateOrUpdate' Request Model: 'parameters[3].schema' Response Model: 'responses[200].schema'
Location: Microsoft.ApiManagement/preview/2023-09-01-preview/apimapis.json#L215
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.ApiManagement/preview/2023-09-01-preview/apimapis.json#L533
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.ApiManagement/preview/2023-09-01-preview/apimapis.json#L595
RepeatedPathInfo The 'apiId' already appears in the path, please don't repeat it in the request body.
Location: Microsoft.ApiManagement/preview/2023-09-01-preview/apimapis.json#L732
️⚠️Avocado: 1 Warnings warning [Detail]
Rule Message
⚠️ CIRCULAR_REFERENCE The JSON file has a circular reference.
readme: specification/apimanagement/resource-manager/readme.md
json: Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView 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.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented May 8, 2024

Swagger Generation Artifacts

️🔄ApiDocPreview inProgress [Detail]
️❌ azure-sdk-for-net-track2 failed [Detail]
  • Failed in generating from b9c0941. 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	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    cmderr	[Invoke-GenerateAndBuildV2.ps1] GeneratePackage: /mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:714
    cmderr	[Invoke-GenerateAndBuildV2.ps1] Line |
    cmderr	[Invoke-GenerateAndBuildV2.ps1]  714 |          GeneratePackage -projectFolder $projectFolder -sdkRootPath $s …
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | Failed to generate sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] Get-ChildItem: /mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:807
    cmderr	[Invoke-GenerateAndBuildV2.ps1] Line |
    cmderr	[Invoke-GenerateAndBuildV2.ps1]  807 |  … rtifacts += Get-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s …
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | Cannot find path
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | '/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | it does not exist.
    cmderr	[Invoke-GenerateAndBuildV2.ps1] GeneratePackage: /mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:714
    cmderr	[Invoke-GenerateAndBuildV2.ps1] Line |
    cmderr	[Invoke-GenerateAndBuildV2.ps1]  714 |          GeneratePackage -projectFolder $projectFolder -sdkRootPath $s …
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | Failed to generate sdk artifact
  • Azure.ResourceManager.ApiManagement [Preview SDK Changes]
    info	[Changelog]
️❌ azure-sdk-for-go failed [Detail]
  • Code Generator Failed in generating from b9c0941. 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
    cmderr	[generator automation-v2] [ERROR] total 1 error(s):
    cmderr	[generator automation-v2] [ERROR] failed to execute `go generate` 'WARNING: Unable to find version for /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement
    cmderr	[generator automation-v2] [ERROR] Cannot find go module under resourcemanager/apimanagement/armapimanagement, try to build in /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement
    cmderr	[generator automation-v2] [ERROR] ##[command]Cleaning auto-generated files in /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement
    cmderr	[generator automation-v2] [ERROR] ##[command]Executing autorest.go in  /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement
    cmderr	[generator automation-v2] [ERROR] autorest --use=@autorest/go@4.0.0-preview.63 --go --track2 --output-folder=/mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement --clear-output-folder=false --go.clear-output-folder=false --honor-body-placement=true --remove-unreferenced-types=false ./autorest.md
    cmderr	[generator automation-v2] [ERROR] AutoRest code generation utility [cli version: 3.6.1; node: v18.20.2]
    cmderr	[generator automation-v2] [ERROR] (C) 2018 Microsoft Corporation.
    cmderr	[generator automation-v2] [ERROR] https://aka.ms/autorest
    cmderr	[generator automation-v2] [ERROR] There is a new version of AutoRest available (3.7.1).
    cmderr	[generator automation-v2] [ERROR] > You can install the newer version with with npm install -g autorest@latest
    cmderr	[generator automation-v2] [ERROR] info    |    Loading AutoRest core      '/home/cloudtest/.autorest/@autorestcore@3.10.2/nodemodules/@autorest/core/dist' (3.10.2)
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.0.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.0.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.0.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.1.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.2.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.3.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.4.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.5.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.6.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.7.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.8.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.9.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.10.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.11.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.12.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.13.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.14.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.15.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.16.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.17.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.18.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.19.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.20.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.21.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.22.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.23.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.24.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.25.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.26.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.27.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.28.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.29.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.30.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.31.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.32.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.33.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.34.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.35.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.36.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] warning | DeprecatedConfig | Using directive.37.suppress which is deprecated and will be removed in the future.
    cmderr	[generator automation-v2] [ERROR] info    |    Installing AutoRest extension '@autorest/go' (4.0.0-preview.63 -> 4.0.0-preview.63)
    cmderr	[generator automation-v2] [ERROR] info    |    Installed AutoRest extension '@autorest/go' (4.0.0-preview.63->4.0.0-preview.63)
    cmderr	[generator automation-v2] [ERROR] info    |    Installing AutoRest extension '@autorest/modelerfour' (4.26.2 -> 4.26.2)
    cmderr	[generator automation-v2] [ERROR] info    |    Installed AutoRest extension '@autorest/modelerfour' (4.26.2->4.26.2)
    cmderr	[generator automation-v2] [ERROR] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > PortalConfigProperties > properties > signup > properties > termsOfService)
    cmderr	[generator automation-v2] [ERROR] keys: [ 'type' ]
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:5281:13
    cmderr	[generator automation-v2] [ERROR] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > PortalConfigProperties > properties > delegation)
    cmderr	[generator automation-v2] [ERROR] keys: [ 'type' ]
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:5288:9
    cmderr	[generator automation-v2] [ERROR] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > PortalConfigProperties > properties > cors)
    cmderr	[generator automation-v2] [ERROR] keys: [ 'type' ]
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:5293:9
    cmderr	[generator automation-v2] [ERROR] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > PortalConfigProperties > properties > csp)
    cmderr	[generator automation-v2] [ERROR] keys: [ 'type' ]
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:5298:9
    cmderr	[generator automation-v2] [ERROR] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > PortalSettingsContractProperties > properties > termsOfService)
    cmderr	[generator automation-v2] [ERROR] keys: [ 'type' ]
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:5503:9
    cmderr	[generator automation-v2] [ERROR] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > PortalSignupSettingsProperties > properties > termsOfService)
    cmderr	[generator automation-v2] [ERROR] keys: [ 'type' ]
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:5560:9
    cmderr	[generator automation-v2] [ERROR] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > Resource > properties > systemData)
    cmderr	[generator automation-v2] [ERROR] keys: [ 'type' ]
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'Operation-display' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimdeployment.json:2118:9
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ConnectivityStatusContract' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimnetworkstatus.json:130:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'NetworkStatusContractByLocation' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimnetworkstatus.json:183:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'NetworkStatusContract' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimnetworkstatus.json:197:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ApiManagementSkuCapacity' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimskus.json:78:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ApiManagementSkuCosts' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimskus.json:115:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ApiManagementSkuCapabilities' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimskus.json:136:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ApiManagementSkuZoneDetails' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimskus.json:151:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ApiManagementSkuRestrictions' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimskus.json:175:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ApiManagementSku' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimskus.json:219:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ApiManagementSkuLocationInfo' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimskus.json:317:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ApiManagementSkuRestrictionInfo' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimskus.json:345:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ApiManagementSkusResult' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/apimskus.json:365:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'BackendBaseParameters-pool' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:1983:9
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ResourceCollection-valueItem' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:5205:11
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'AssociationContract-properties' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:8204:9
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/SchemaMissingType | The schema 'ContentItemContractProperties' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:8324:5
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/EmptyParentSchemaWarning | Schema 'BackendBaseParameters-pool' has an allOf list with an empty object schema as a parent, removing it.
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:1988:13
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/CheckDuplicateSchemas | Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.
    cmderr	[generator automation-v2] [ERROR] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'ErrorResponse' (4 differences):
    cmderr	[generator automation-v2] [ERROR] - properties.error.x-ms-client-flatten: true => <none>
    cmderr	[generator automation-v2] [ERROR] - properties.error.$ref: "#/components/schemas/schemas:53" => "#/components/schemas/schemas:2135"
    cmderr	[generator automation-v2] [ERROR] - properties.error.description: "Properties of the Error Response." => "The error object."
    cmderr	[generator automation-v2] [ERROR] - title: <none> => "Error response"; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmderr	[generator automation-v2] [ERROR] fatal   | Error: 1 errors occured -- cannot continue.
    cmderr	[generator automation-v2] [ERROR] fatal   | Process() cancelled due to failure
    cmderr	[generator automation-v2] [ERROR] error   |   Error: Plugin prechecker reported failure.
    cmderr	[generator automation-v2] [ERROR] error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
    cmderr	[generator automation-v2] [ERROR] ##[error]Error running autorest.go
    cmderr	[generator automation-v2] [ERROR] build.go:5: running "pwsh": exit status 1
    cmderr	[generator automation-v2] [ERROR] ': exit status 1
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go]: generator automation-v2
    warn	Skip package processing as generation is failed
️❌ azure-sdk-for-python failed [Detail]
  • Code Generator Failed in generating from b9c0941. 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] W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    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
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'BackendBaseParameters-pool' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:1983:9
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'ResourceCollection-valueItem' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:5205:11
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'AssociationContract-properties' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:8204:9
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'ContentItemContractProperties' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:8324:5
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/EmptyParentSchemaWarning | Schema 'BackendBaseParameters-pool' has an allOf list with an empty object schema as a parent, removing it.
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:1988:13
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/CheckDuplicateSchemas | Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.
    cmdout	[automation_generate.sh] [Autorest] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'ErrorResponse' (4 differences):
    cmdout	[automation_generate.sh] [Autorest]   - properties.error.x-ms-client-flatten: true => <none>
    cmdout	[automation_generate.sh] [Autorest]   - properties.error.$ref: "#/components/schemas/schemas:53" => "#/components/schemas/schemas:2135"
    cmdout	[automation_generate.sh] [Autorest]   - properties.error.description: "Properties of the Error Response." => "The error object."
    cmdout	[automation_generate.sh] [Autorest]   - title: <none> => "Error response"; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Error: 1 errors occured -- cannot continue.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Process() cancelled due to failure
    cmdout	[automation_generate.sh] [Autorest] error   |   Error: Plugin prechecker reported failure.
    cmdout	[automation_generate.sh] [Autorest] error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'BackendBaseParameters-pool' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:1983:9
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'ResourceCollection-valueItem' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:5205:11
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'AssociationContract-properties' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:8204:9
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/SchemaMissingType | The schema 'ContentItemContractProperties' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:8324:5
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/EmptyParentSchemaWarning | Schema 'BackendBaseParameters-pool' has an allOf list with an empty object schema as a parent, removing it.
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json:1988:13
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/CheckDuplicateSchemas | Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.
    cmdout	[automation_generate.sh] [Autorest] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'ErrorResponse' (4 differences):
    cmdout	[automation_generate.sh] [Autorest]   - properties.error.x-ms-client-flatten: true => <none>
    cmdout	[automation_generate.sh] [Autorest]   - properties.error.$ref: "#/components/schemas/schemas:53" => "#/components/schemas/schemas:2135"
    cmdout	[automation_generate.sh] [Autorest]   - properties.error.description: "Properties of the Error Response." => "The error object."
    cmdout	[automation_generate.sh] [Autorest]   - title: <none> => "Error response"; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Error: 1 errors occured -- cannot continue.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Process() cancelled due to failure
    cmdout	[automation_generate.sh] [Autorest] error   |   Error: Plugin prechecker reported failure.
    cmdout	[automation_generate.sh] [Autorest] error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
    cmdout	[automation_generate.sh] [Autorest]/mnt/vss/_work/1/s/azure-sdk-for-python_tmp/venv-sdk/auto_temp.json does not exist!!!Error happened during codegen
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-python]: sh scripts/automation_generate.sh
    warn	Skip package processing as generation is failed
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from b9c0941. 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-apimanagement [Preview SDK Changes]
    • azure-arm-apimanagement-10.0.0-beta.1.tgz
️❌ azure-resource-manager-schemas failed [Detail]
  • Code Generator Failed in generating from b9c0941. 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] Submodule 'bicep-types-az' (https://github.com/Azure/bicep-types-az) registered for path 'bicep-types-az'
    cmderr	[initScript.sh] Cloning into '/mnt/vss/_work/1/s/azure-resource-manager-schemas/bicep-types-az'...
    cmderr	[initScript.sh] Submodule 'bicep-types' (https://github.com/Azure/bicep-types) registered for path 'bicep-types-az/bicep-types'
    cmderr	[initScript.sh] Cloning into '/mnt/vss/_work/1/s/azure-resource-manager-schemas/bicep-types-az/bicep-types'...
    cmderr	[initScript.sh]  notice
    cmderr	[initScript.sh] npm notice New minor version of npm available! 10.5.0 -> 10.8.0
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.0>
    cmderr	[initScript.sh] npm notice Run `npm install -g npm@10.8.0` to update!
    cmderr	[initScript.sh] npm notice
    error	Script return with result [failed] code [1] signal [null] cwd [azure-resource-manager-schemas]: .sdkauto/initScript.sh
    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
    cmderr	[generateScript.sh] /mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:500
    cmderr	[generateScript.sh]     return new TSError(diagnosticText, diagnosticCodes)
    cmderr	[generateScript.sh]            ^
    cmderr	[generateScript.sh] TSError: ⨯ Unable to compile TypeScript:
    cmderr	[generateScript.sh] cmd/generateall.ts(6,20): error TS2307: Cannot find module 'colors' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(10,19): error TS2307: Cannot find module 'yargs' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(11,18): error TS2307: Cannot find module 'path' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(13,35): error TS2307: Cannot find module 'fs' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(14,23): error TS2307: Cannot find module 'strip-ansi' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(42,9): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(53,9): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(69,67): error TS7006: Parameter 'x' implicitly has an 'any' type.
    cmderr	[generateScript.sh] cmd/generateall.ts(70,49): error TS7006: Parameter 'f' implicitly has an 'any' type.
    cmderr	[generateScript.sh] cmd/generateall.ts(94,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(105,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(106,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(157,13): error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
    cmderr	[generateScript.sh]     at createTSError (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:500:12)
    cmderr	[generateScript.sh]     at reportTSError (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:504:19)
    cmderr	[generateScript.sh]     at getOutput (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:739:36)
    cmderr	[generateScript.sh]     at Object.compile (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:955:32)
    cmderr	[generateScript.sh]     at Module.m._compile (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:1043:43)
    cmderr	[generateScript.sh]     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    cmderr	[generateScript.sh]     at Object.require.extensions.<computed> [as .ts] (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:1046:12)
    cmderr	[generateScript.sh]     at Module.load (node:internal/modules/cjs/loader:1203:32)
    cmderr	[generateScript.sh]     at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
    cmderr	[generateScript.sh]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    error	Script return with result [failed] code [1] signal [null] cwd [azure-resource-manager-schemas]: .sdkauto/generateScript.sh
    warn	Skip package processing as generation is failed
    error	ERROR: The 'breakingChangesLabel' configuration is missing or incorrect from the 'swagger_to_sdk_config.json file.
️⚠️ azure-powershell warning [Detail]
  • ⚠️Warning in generating from b9c0941. 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.apimanagement.DefaultTag [Preview SDK Changes]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented May 8, 2024

@solankisamir
Copy link
Member Author

solankisamir commented May 9, 2024

* add operation results

* fix spec

* operationresults

* fix file name
* new skutype

* virtualNetworkType

* remove default from patch

* List skus API

* add model for sku

* caps enums
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2023-09-01-apim Changes targetting 2023-09-01-preview for API Management API Management ARMReview BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required new-api-version NotReadyForARMReview ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test resource-manager SuppressionReviewRequired
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants