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

Microsoft.ContainerInstance : Preview API-Version 2024-05-01-preview #28962

Conversation

drishtipeshwani09
Copy link
Contributor

@drishtipeshwani09 drishtipeshwani09 commented May 3, 2024

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.

Copied the files in a separate commit.
This allows reviewers to easily diff subsequent changes against the previous spec.
Updated the API version from stable/2023-05-01 to preview/2024-05-01-preview.
…Pool to Container Group Properties and ConfigMap to ContainerProperties specs and modified examples
Copy link

openapi-pipeline-app bot commented May 3, 2024

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ The required check named Swagger PrettierCheck has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it.

Copy link

openapi-pipeline-app bot commented May 3, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 2 Errors, 0 Warnings failed [Detail] The following breaking changes are detected by comparison with the latest stable version:
Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/6aa04c53d24f56d36048a4bd71f5924479111c42/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2023-05-01/containerInstance.json",
"details":"Breaking change detector (OAD) invoked AutoRest. AutoRest threw a runtime error. First 20 lines of stack trace follow,
indexed. First line should contain AutoRest command line invocation details. Remaining lines should contain the main message reported by AutoRest.
====================
1: Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.98/common/temp/node_modules/.pnpm/@Azure+oad@0.10.8/node_modules/autorest/dist/app.js" --v2 --input-file=specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=new --output-folder=/tmp/oad-1B8z7T
2: ERROR: Schema violation: Data does not match any schemas from 'anyOf'
3:
4: code: 'ANY-OF-MISSING',

5: params: [],

6: message: "Data does not match any schemas from 'anyOf'",

7: path: '#/definitions/StandbyPoolProfileDefinition/properties/failContainerGroupCreateOnReuseFailure/type',

8: schemaId: 'https://raw.githubusercontent.com/Azure/autorest/master/schema/swagger-extensions.json#',

9: inner: [
10:
11: code: 'ENUM-MISMATCH',

12: params: [ 'bool' ],

13: message: 'No enum match for: bool',

14: path: '#/definitions/StandbyPoolProfileDefinition/properties/failContainerGroupCreateOnReuseFailure/type',

15: schemaId: undefined
16: ,

17:
18: code: 'INVALID-TYPE',

19: params: [ 'array',
'string' ],

20: message: 'Expected type array but found type string',
"


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

Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/6aa04c53d24f56d36048a4bd71f5924479111c42/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/containerInstance.json",
"details":"Breaking change detector (OAD) invoked AutoRest. AutoRest threw a runtime error. First 20 lines of stack trace follow,
indexed. First line should contain AutoRest command line invocation details. Remaining lines should contain the main message reported by AutoRest.
====================
1: Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.98/common/temp/node_modules/.pnpm/@Azure+oad@0.10.8/node_modules/autorest/dist/app.js" --v2 --input-file=specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=new --output-folder=/tmp/oad-L4NzOS
2: ERROR: Schema violation: Data does not match any schemas from 'anyOf'
3:
4: code: 'ANY-OF-MISSING',

5: params: [],

6: message: "Data does not match any schemas from 'anyOf'",

7: path: '#/definitions/StandbyPoolProfileDefinition/properties/failContainerGroupCreateOnReuseFailure/type',

8: schemaId: 'https://raw.githubusercontent.com/Azure/autorest/master/schema/swagger-extensions.json#',

9: inner: [
10:
11: code: 'ENUM-MISMATCH',

12: params: [ 'bool' ],

13: message: 'No enum match for: bool',

14: path: '#/definitions/StandbyPoolProfileDefinition/properties/failContainerGroupCreateOnReuseFailure/type',

15: schemaId: undefined
16: ,

17:
18: code: 'INVALID-TYPE',

19: params: [ 'array',
'string' ],

20: message: 'Expected type array but found type string',
"
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌LintDiff: 18 Errors, 0 Warnings failed [Detail] [must fix]The following errors/warnings are introduced by current PR:
Rule Message Related RPC [For API reviewers]
AvoidAdditionalProperties Definitions must not have properties named additionalProperties except for user defined tags or predefined references.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L851
RPC-Policy-V1-05, RPC-Put-V1-23
AvoidAdditionalProperties Definitions must not have properties named additionalProperties except for user defined tags or predefined references.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L958
RPC-Policy-V1-05, RPC-Put-V1-23
AvoidAdditionalProperties Definitions must not have properties named additionalProperties except for user defined tags or predefined references.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L968
RPC-Policy-V1-05, RPC-Put-V1-23
AvoidAdditionalProperties Definitions must not have properties named additionalProperties except for user defined tags or predefined references.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L1400
RPC-Policy-V1-05, RPC-Put-V1-23
AvoidAdditionalProperties Definitions must not have properties named additionalProperties except for user defined tags or predefined references.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L1429
RPC-Policy-V1-05, RPC-Put-V1-23
AvoidAdditionalProperties Definitions must not have properties named additionalProperties except for user defined tags or predefined references.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L2086
RPC-Policy-V1-05, RPC-Put-V1-23
AutoRest exception "tag":"package-preview-2024-05",
"details":"Schema violation: must be equal to one of the allowed values (definitions > ContainerGroupProperties > properties > properties > properties > isCreatedFromStandbyPool > type) allowedValues: array,
boolean,
integer,
null,
number,
object,
string"
AutoRest exception "tag":"package-preview-2024-05",
"details":"Schema violation: must be array (definitions > ContainerGroupProperties > properties > properties > properties > isCreatedFromStandbyPool > type)"
AutoRest exception "tag":"package-preview-2024-05",
"details":"Schema violation: must match a schema in anyOf (definitions > ContainerGroupProperties > properties > properties > properties > isCreatedFromStandbyPool > type)"
AutoRest exception "tag":"package-preview-2024-05",
"details":"Schema violation: must be equal to one of the allowed values (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type) allowedValues: array,
boolean,
integer,
null,
number,
object,
string"
AutoRest exception "tag":"package-preview-2024-05",
"details":"Schema violation: must be array (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)"
AutoRest exception "tag":"package-preview-2024-05",
"details":"Schema violation: must match a schema in anyOf (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)"
AutoRest exception "tag":"package-preview-2024-05",
"details":"Schema violation: must be equal to one of the allowed values (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type) allowedValues: array,
boolean,
integer,
null,
number,
object,
string"
AutoRest exception "tag":"package-preview-2024-05",
"details":"Schema violation: must be array (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)"
AutoRest exception "tag":"package-preview-2024-05",
"details":"Schema violation: must match a schema in anyOf (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)"
AutoRest exception "tag":"package-preview-2024-05",
"details":"Plugin 'schema-validator-swagger' completed with some error."
AutoRest exception "tag":"package-preview-2024-05",
"details":"!Error: Plugin 'schema-validator-swagger' completed with some error."
AutoRest exception "tag":"package-preview-2024-05",
"details":"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."


The following errors/warnings exist before current PR submission:

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

Rule Message
ResourceNameRestriction The resource name parameter 'containerGroupName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L113
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L221
PatchIdentityProperty The patch operation body parameter schema should contain property 'identity'.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L249
UnSupportedPatchProperties Mark the top-level property 'location', specified in the patch operation body, as readOnly or immutable. You could also choose to remove it from the request payload of the Patch operation. This property is not patchable.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L249
DeleteResponseCodes Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L274
DeleteResponseBodyEmpty The delete response body must be empty.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L300
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L304
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L313
ResourceNameRestriction The resource name parameter 'containerGroupName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L320
PostResponseCodes Long-running POST operations must have responses with 202 and default return codes. They must also have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. They also must not have other response codes.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L321
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L351
ResourceNameRestriction The resource name parameter 'containerGroupName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L358
ResourceNameRestriction The resource name parameter 'containerGroupName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L395
PostResponseCodes Long-running POST operations must have responses with 202 and default return codes. They must also have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. They also must not have other response codes.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L396
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L420
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L429
OperationsApiResponseSchema The response schema of operations API '/providers/Microsoft.ContainerInstance/operations' does not match the ARM specification. Please standardize the schema.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L456
OperationsApiSchemaUsesCommonTypes Operations API path must follow the schema provided in the common types.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L457
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L495
ResourceNameRestriction The resource name parameter 'containerGroupName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L511
ResourceNameRestriction The resource name parameter 'containerName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L511
XmsPageableForListCalls x-ms-pageable extension must be specified for LIST APIs.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L512
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L558
ResourceNameRestriction The resource name parameter 'containerGroupName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L571
ResourceNameRestriction The resource name parameter 'containerName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L571
ResourceNameRestriction The resource name parameter 'containerGroupName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L627
ResourceNameRestriction The resource name parameter 'containerName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L627
ResourceNameRestriction The resource name parameter 'containerGroupName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L754
XmsPageableForListCalls x-ms-pageable extension must be specified for LIST APIs.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L755
ResourceNameRestriction The resource name parameter 'virtualNetworkName' should be defined with a 'pattern' restriction.
Location: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L790
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 2 Errors, 0 Warnings failed [Detail]
Rule Message
unacceptable kind of an object to dump [object Error] "role":"Model Validation",
"url":"https://github.com/Azure/azure-rest-api-specs/blob/6aa04c53d24f56d36048a4bd71f5924479111c42/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json"
unacceptable kind of an object to dump [object Error] "role":"Model Validation",
"url":"https://github.com/Azure/azure-rest-api-specs/blob/6aa04c53d24f56d36048a4bd71f5924479111c42/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json"
️❌SemanticValidation: 4 Errors, 0 Warnings failed [Detail]
Rule Message
ENUM_MISMATCH No enum match for: bool
JsonUrl: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L1578:23
INVALID_TYPE Expected type array but found type string
JsonUrl: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L1578:23
ANY_OF_MISSING Data does not match any schemas from 'anyOf'
JsonUrl: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L1578:23
ENUM_MISMATCH No enum match for: int
JsonUrl: Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json#L1578:23
️️✔️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 3, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from 745223eadea66092c49171c325dd0e77a76d91e9. 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
  • ️✔️Azure.ResourceManager.ContainerInstance [Preview SDK Changes]
    • Azure.ResourceManager.ContainerInstance.1.3.0-alpha.20240503.1.nupkg
    info	[Changelog]
️❌ azure-sdk-for-python failed [Detail]
  • Code Generator Failed in generating from 745223eadea66092c49171c325dd0e77a76d91e9. 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.
    cmderr	[automation_init.sh]
    cmderr	[automation_init.sh] npm notice New minor version of npm available! 10.5.0 -> 10.7.0
    cmderr	[automation_init.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.7.0>
    cmderr	[automation_init.sh] npm notice Run `npm install -g npm@10.7.0` to update!
    cmderr	[automation_init.sh] npm notice
    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]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1578:15
    cmdout	[automation_generate.sh] [Autorest] fatal   | Plugin 'schema-validator-swagger' completed with some error.
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must match a schema in anyOf (definitions > ContainerGroupProperties > properties > properties > properties > isCreatedFromStandbyPool > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1578:15
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must be equal to one of the allowed values (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)
    cmdout	[automation_generate.sh] [Autorest]   allowedValues: array, boolean, integer, null, number, object, string
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1598:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must be array (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1598:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must match a schema in anyOf (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1598:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must be equal to one of the allowed values (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)
    cmdout	[automation_generate.sh] [Autorest]   allowedValues: array, boolean, integer, null, number, object, string
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1612:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must be array (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1612:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must match a schema in anyOf (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1612:11
    cmdout	[automation_generate.sh] [Autorest] error   |   Error: Plugin 'schema-validator-swagger' completed with some error.
    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]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1578:15
    cmdout	[automation_generate.sh] [Autorest] fatal   | Plugin 'schema-validator-swagger' completed with some error.
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must match a schema in anyOf (definitions > ContainerGroupProperties > properties > properties > properties > isCreatedFromStandbyPool > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1578:15
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must be equal to one of the allowed values (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)
    cmdout	[automation_generate.sh] [Autorest]   allowedValues: array, boolean, integer, null, number, object, string
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1598:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must be array (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1598:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must match a schema in anyOf (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1598:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must be equal to one of the allowed values (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)
    cmdout	[automation_generate.sh] [Autorest]   allowedValues: array, boolean, integer, null, number, object, string
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1612:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must be array (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1612:11
    cmdout	[automation_generate.sh] [Autorest] error   | schema_violation | Schema violation: must match a schema in anyOf (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)
    cmdout	[automation_generate.sh] [Autorest]     - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1612:11
    cmdout	[automation_generate.sh] [Autorest] error   |   Error: Plugin 'schema-validator-swagger' completed with some error.
    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-java failed [Detail]
  • Pipeline Framework Failed in generating from 745223eadea66092c49171c325dd0e77a76d91e9. SDK Automation 14.0.0
    command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[generate.py] [GENERATE][Error] Code generation failed.
    cmderr	[generate.py] Please first check if the failure happens only to Java automation, or for all SDK automations.
    cmderr	[generate.py] If it happens for all SDK automations, please double check your Swagger, and check whether there is errors in ModelValidation and LintDiff.
    cmderr	[generate.py] If it happens to Java alone, you can open an issue to https://github.com/Azure/autorest.java/issues. Please include the link of this Pull Request in the issue.
    ENOENT: no such file or directory, stat 'azure-sdk-for-java/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/pom.xml'
  • azure-resourcemanager-containerinstance-generated
    error	Fatal error: ENOENT: no such file or directory, stat 'azure-sdk-for-java/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/pom.xml'
    error	Fatal error: Error: ENOENT: no such file or directory, stat 'azure-sdk-for-java/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/pom.xml'
    error	The following packages are still pending:
    error		azure-resourcemanager-containerinstance-generated
️❌ azure-sdk-for-go failed [Detail]
  • Code Generator Failed in generating from 745223eadea66092c49171c325dd0e77a76d91e9. 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/containerinstance/armcontainerinstance
    cmderr	[generator automation-v2] [ERROR] Cannot find go module under resourcemanager/containerinstance/armcontainerinstance, try to build in /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance
    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/containerinstance/armcontainerinstance
    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/containerinstance/armcontainerinstance
    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/containerinstance/armcontainerinstance --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] 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] error   | schema_violation | Schema violation: must be equal to one of the allowed values (definitions > ContainerGroupProperties > properties > properties > properties > isCreatedFromStandbyPool > type)
    cmderr	[generator automation-v2] [ERROR] allowedValues: array, boolean, integer, null, number, object, string
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1578:15
    cmderr	[generator automation-v2] [ERROR] error   | schema_violation | Schema violation: must be array (definitions > ContainerGroupProperties > properties > properties > properties > isCreatedFromStandbyPool > type)
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1578:15
    cmderr	[generator automation-v2] [ERROR] fatal   | Plugin 'schema-validator-swagger' completed with some error.
    cmderr	[generator automation-v2] [ERROR] error   | schema_violation | Schema violation: must match a schema in anyOf (definitions > ContainerGroupProperties > properties > properties > properties > isCreatedFromStandbyPool > type)
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1578:15
    cmderr	[generator automation-v2] [ERROR] error   | schema_violation | Schema violation: must be equal to one of the allowed values (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)
    cmderr	[generator automation-v2] [ERROR] allowedValues: array, boolean, integer, null, number, object, string
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1598:11
    cmderr	[generator automation-v2] [ERROR] error   | schema_violation | Schema violation: must be array (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1598:11
    cmderr	[generator automation-v2] [ERROR] error   | schema_violation | Schema violation: must match a schema in anyOf (definitions > ContainerGroupProfileReferenceDefinition > properties > revision > type)
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1598:11
    cmderr	[generator automation-v2] [ERROR] error   | schema_violation | Schema violation: must be equal to one of the allowed values (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)
    cmderr	[generator automation-v2] [ERROR] allowedValues: array, boolean, integer, null, number, object, string
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1612:11
    cmderr	[generator automation-v2] [ERROR] error   | schema_violation | Schema violation: must be array (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1612:11
    cmderr	[generator automation-v2] [ERROR] error   | schema_violation | Schema violation: must match a schema in anyOf (definitions > StandbyPoolProfileDefinition > properties > failContainerGroupCreateOnReuseFailure > type)
    cmderr	[generator automation-v2] [ERROR] - file:///mnt/vss/_work/1/s/azure-rest-api-specs/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json:1612:11
    cmderr	[generator automation-v2] [ERROR] error   |   Error: Plugin 'schema-validator-swagger' completed with some error.
    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-js inProgress [Detail]
️❌ azure-resource-manager-schemas failed [Detail]
  • Failed in generating from 745223eadea66092c49171c325dd0e77a76d91e9. 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]  notice
    cmderr	[initScript.sh] npm notice New minor version of npm available! 10.5.0 -> 10.7.0
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.7.0>
    cmderr	[initScript.sh] npm notice Run `npm install -g npm@10.7.0` to update!
    cmderr	[initScript.sh] npm notice
    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
  • containerinstance/resource-manager [Preview Schema Changes]
️⚠️ azure-powershell warning [Detail]
  • ⚠️Warning in generating from 745223eadea66092c49171c325dd0e77a76d91e9. 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.containerinstance.DefaultTag [Preview SDK Changes]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented May 3, 2024

Generated ApiView

Language Package Name ApiView Link
.Net Azure.ResourceManager.ContainerInstance There is no API change compared with the previous version
Swagger Microsoft.ContainerInstance https://apiview.dev/Assemblies/Review/57ed6af1fd4140b5b89c9b62c962949f?revisionId=1c89b6224a0642c5ac30fa686e6c28a5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants