Skip to content

Conversation

@davidcho23
Copy link
Contributor

@davidcho23 davidcho23 commented Nov 7, 2023

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.

ARM (Control Plane) API Specification Update Pull Request

PR review workflow diagram

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

diagram

[1] ARM review queue (for merge queues, see [4])
The PRs are processed by time opened, ascending. Your PR may show up on 2nd or later page.
If you addressed Step 1 from the diagram and your PR is not showing up in the queue, ensure the label ARMChangesRequested
is removed from your PR. This should cause the label WaitForARMFeedback to be added.
[2] https://aka.ms/azsdk/support/specreview-channel
[3] List of SDK breaking changes approvers in pinned Teams announcement
[4] public repo merge queue, private repo merge queue (for ARM review queue, [1])

If you need further help with anything, see Getting help section below.

Purpose of this PR

What's the purpose of this PR? Check all that apply. This is mandatory!

  • New API version. (Such PR should have been generated with OpenAPI Hub).
  • 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 swagger 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:

Breaking changes review (Step 1)

  • If the automation determines you have breaking changes, i.e. Step 1 from the diagram applies to you,
    you must follow the breaking changes process.
    IMPORTANT This applies even if:
    • The tool fails while it shouldn't, e.g. due to runtime exception, or incorrect detection of breaking changes.
    • You believe there is no need for you to request breaking change approval, for any reason.
      Such claims must be reviewed, and the process is the same.

ARM API changes review (Step 2)

  • If this PR is in purview of ARM review then automation will add the ARMReview label.
  • If you want to force ARM review, add the label yourself.
  • Proceed according to the diagram at the top of this comment.

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
Swagger-Suppression-Process
to get approval.

Getting help

@davidcho23
Copy link
Contributor Author

The PR is created based on the updates in the private branch. The updates in the PR has already been reviewed and approved with this PR Azure/azure-rest-api-specs-pr/15233

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 7, 2023

Next Steps to Merge

✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 7, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌LintDiff: 1 Errors, 1 Warnings failed [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
package-bicep-2023-11 package-bicep-2023-11(f323c9a) default(main)

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

Rule Message Related RPC [For API reviewers]
OperationsAPIImplementation Operations API must be implemented for 'Microsoft.Resources'.
Location: Microsoft.Resources/stable/2023-11-01/bicepClient.json#L1
⚠️ PostOperationIdContainsUrlVerb OperationId should contain the verb: 'decompilebicep' in:'Decompile_Bicep'. Consider updating the operationId
Location: Microsoft.Resources/stable/2023-11-01/bicepClient.json#L42
️❌Avocado: 1 Errors, 0 Warnings failed [Detail]
Rule Message
MULTIPLE_DEFAULT_TAGS The readme file has more than one default tag.
readme: specification/resources/resource-manager/readme.md
️️✔️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?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 7, 2023

Swagger Generation Artifacts

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

Breaking Changes Tracking











️⚠️ azure-sdk-for-net-track2 warning [Detail]
  • ⚠️Warning [Logs] Generate from 1b53331c441fe465a31e9d61a0e82c7a08d03bde. 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
    warn	No file changes detected after generation
  • ️✔️Azure.ResourceManager.Resources [View full logs
    info	[Changelog]
️❌ azure-sdk-for-python-track2 failed [Detail]
  • Code Generator Failed [Logs] Generate from 1b53331c441fe465a31e9d61a0e82c7a08d03bde. 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: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
    command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    cmderr	[automation_generate.sh]
    cmderr	[automation_generate.sh] npm notice New major version of npm available! 9.8.1 -> 10.2.4
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.4>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[automation_generate.sh] npm notice
    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 warning [Detail]
  • ⚠️Warning [Logs] Generate from 1b53331c441fe465a31e9d61a0e82c7a08d03bde. SDK Automation 14.0.0
    command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
  • ️✔️azure-resourcemanager-resources-generated [View full logs]  [Preview SDK Changes]
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from 1b53331c441fe465a31e9d61a0e82c7a08d03bde. SDK Automation 14.0.0
    command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
    command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
  • ️✔️sdk/resourcemanager/resources/armresources [View full logs]  [Preview SDK Changes] Breaking Change Detected
    Only show 11 items here, please refer to log for details.
    info	[Changelog] - Operation `*TagsClient.CreateOrUpdateAtScope` has been changed to LRO, use `*TagsClient.BeginCreateOrUpdateAtScope` instead.
    info	[Changelog] - Operation `*TagsClient.DeleteAtScope` has been changed to LRO, use `*TagsClient.BeginDeleteAtScope` instead.
    info	[Changelog] - Operation `*TagsClient.UpdateAtScope` has been changed to LRO, use `*TagsClient.BeginUpdateAtScope` instead.
    info	[Changelog]
    info	[Changelog] ### Features Added
    info	[Changelog]
    info	[Changelog] - New struct `DeploymentParameter`
    info	[Changelog] - New struct `KeyVaultParameterReference`
    info	[Changelog] - New struct `KeyVaultReference`
    info	[Changelog]
    info	[Changelog] Total 5 breaking change(s), 6 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armdeploymentscripts [View full logs]  [Preview SDK Changes]
    info	[Changelog] ### Features Added
    info	[Changelog]
    info	[Changelog] - New struct `ContainerGroupSubnetID`
    info	[Changelog] - New field `SubnetIDs` in struct `ContainerConfiguration`
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 3 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armfeatures [View full logs]  [Preview SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armlinks [View full logs]  [Preview SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armlocks [View full logs]  [Preview SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armmanagedapplications [View full logs]  [Preview SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armpolicy [View full logs]  [Preview SDK Changes]
    Only show 11 items here, please refer to log for details.
    info	[Changelog] - New struct `DefinitionVersion`
    info	[Changelog] - New struct `DefinitionVersionListResult`
    info	[Changelog] - New struct `DefinitionVersionProperties`
    info	[Changelog] - New struct `SetDefinitionVersion`
    info	[Changelog] - New struct `SetDefinitionVersionListResult`
    info	[Changelog] - New struct `SetDefinitionVersionProperties`
    info	[Changelog] - New field `Version`, `Versions` in struct `DefinitionProperties`
    info	[Changelog] - New field `Schema` in struct `ParameterDefinitionsValue`
    info	[Changelog] - New field `Version`, `Versions` in struct `SetDefinitionProperties`
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 45 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armsubscriptions [View full logs]  [Preview SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armtemplatespecs [View full logs]  [Preview SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armchanges [View full logs]  [Preview SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
  • ️✔️sdk/resourcemanager/resources/armdeploymentstacks [View full logs]  [Preview SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
️🔄 azure-sdk-for-js inProgress [Detail]
️❌ azure-resource-manager-schemas failed [Detail]
  • Pipeline Framework Failed [Logs] Generate from 1b53331c441fe465a31e9d61a0e82c7a08d03bde. 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] npm notice
    cmderr	[initScript.sh] npm notice New major version of npm available! 8.19.4 -> 10.2.4
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.4>
    cmderr	[initScript.sh] npm notice Run `npm install -g [email protected]` 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
    cannot force update branch 'sdkAuto/26600/resources' as it is the current HEAD of the repository.
    Error: cannot force update branch 'sdkAuto/26600/resources' as it is the current HEAD of the repository.
  • ️✔️resources [View full logs]  [Preview Schema Changes]
  • ️✔️resources [View full logs
    error	Fatal error: cannot force update branch 'sdkAuto/26600/resources' as it is the current HEAD of the repository.
    error	The following packages are still pending:
    error		resources
    error		resources
    error		resources
    error		resources
  • ️✔️resources
  • ️✔️resources
️❌ azure-powershell failed [Detail]
  • Pipeline Framework Failed [Logs] Generate from 1b53331c441fe465a31e9d61a0e82c7a08d03bde. 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
    SSL error: syscall failure: Broken pipe
    Error: SSL error: syscall failure: Broken pipe
  • ⚠️Az.resources.DefaultTag [View full logs
    error	Fatal error: SSL error: syscall failure: Broken pipe
    error	The following packages are still pending:
    error		Az.resources.DefaultTag
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 7, 2023

Generated ApiView

Language Package Name ApiView Link
Go sdk/resourcemanager/resources/armchanges There is no API change compared with the previous version
Go sdk/resourcemanager/resources/armdeploymentscripts https://apiview.dev/Assemblies/Review/89b01ab28f1647e7840ca19aa3132f83
Go sdk/resourcemanager/resources/armdeploymentstacks There is no API change compared with the previous version
Go sdk/resourcemanager/resources/armfeatures There is no API change compared with the previous version
Go sdk/resourcemanager/resources/armlinks There is no API change compared with the previous version
Go sdk/resourcemanager/resources/armlocks There is no API change compared with the previous version
Go sdk/resourcemanager/resources/armmanagedapplications There is no API change compared with the previous version
Go sdk/resourcemanager/resources/armpolicy https://apiview.dev/Assemblies/Review/56f2e568d23e4c5da5d9d84cc41bae7a
Go sdk/resourcemanager/resources/armresources https://apiview.dev/Assemblies/Review/f1672474a2944dbabe39722fd541f137
Go sdk/resourcemanager/resources/armsubscriptions There is no API change compared with the previous version
Go sdk/resourcemanager/resources/armtemplatespecs There is no API change compared with the previous version
Java azure-resourcemanager-resources-generated https://apiview.dev/Assemblies/Review/50a5318fe87144efa4fcfa0a84d09353
.Net Azure.ResourceManager.Resources There is no API change compared with the previous version
Swagger Microsoft.Resources https://apiview.dev/Assemblies/Review/cbf3c406de5348b7866753a96e20915f

@AzureRestAPISpecReview AzureRestAPISpecReview added ARMChangesRequested ARMReview BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required new-api-version labels Nov 7, 2023
@openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Nov 29, 2023
…-rest-api-specs-pr/davidcho23-resources-Microsoft.Resources-2023-11-01
@AzureRestAPISpecReview AzureRestAPISpecReview added ARMChangesRequested and removed ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required labels Dec 6, 2023
@openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Dec 6, 2023
"type": "object",
"properties": {
"path": {
"type": "string"
Copy link
Contributor

@visingla-ms visingla-ms Dec 6, 2023

Choose a reason for hiding this comment

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

What path is it? Is it some storage blob path? and Why is it needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The decompilation can generate multiple Bicep files. For example, a decompilation of a nested deployment could generate the main.bicep file and the nested_moduleDeploy.bicep file. If we wanted to retrieve the contents of nested_moduleDeploy.bicep file, the path is needed to access the correct FileDefinition object in the array

},
"entryPoint": {
"type": "string",
"description": "The entry point for the Bicep file."
Copy link
Contributor

Choose a reason for hiding this comment

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

What does entry point indicate in the generated bicep file? Just curious.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The entry point is the key to retrieve the main Bicep file generated from the decompilation.

Copy link
Member

Choose a reason for hiding this comment

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

I think we could clarify this a bit with the following:

Suggested change
"description": "The entry point for the Bicep file."
"description": "The file path to the main Bicep file generated from the decompiled ARM json template."

{
"swagger": "2.0",
"info": {
"title": "BicepRp",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it called bicepRP? is there a RP named Bicep?

Copy link
Member

Choose a reason for hiding this comment

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

"..Client" seems to fit better with the convention used in other files. If we're being strict with terminology, this isn't a new RP, it's just a set of APIs added to an existing RP (Microsoft.Resources).

Suggested change
"title": "BicepRp",
"title": "BicepClient",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed the name to BicepClient

@visingla-ms
Copy link
Contributor

Please get breaking changes approval from SDK reviewer for Go SDK.

@visingla-ms visingla-ms added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label Dec 6, 2023
@openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Dec 6, 2023
@visingla-ms
Copy link
Contributor

Approved from ARM side based on private repo PR.

@raych1 raych1 added the Approved-SdkBreakingChange-Go Approve the breaking change tracking for azure-sdk-for-go label Dec 8, 2023
@davidcho23
Copy link
Contributor Author

/pr RequestMerge

@visingla-ms visingla-ms merged commit 33da947 into main Dec 8, 2023
@visingla-ms visingla-ms deleted the published/Azure/azure-rest-api-specs-pr/davidcho23-resources-Microsoft.Resources-2023-11-01 branch December 8, 2023 18:10
arifibrahim4 pushed a commit that referenced this pull request Feb 26, 2024
…t.Resources-2023-11-01' (#26600)

* Adds base for updating Microsoft.Resources from version stable/2023-07-01 to version 2023-11-01

* Updates readme

* Updates API version in new specs and examples

* Add decompileBicep

* Updated api version in bicepRp.json

* Removed unnecessary files.

* Updated readme and used prettier

* Added to custom-words.txt and updated bicepRp.json

* Changed parameter references and updated descriptions for definitions

* Adding array of tuples for files

* Changed a word

* Updating decompileBicep.json example

* Changes to add FileDefinition

* Adding x-ms-identifiers for name

* Changing name to path and using prettier
.

* Updating tag

* Update readme

* Fixed example decompileBicep.json file

* Fixed a tag

* Updating error response

* Renamed bicepRp to bicepClient

* Updated description for entryPoint

* Updated reference to BicepClient

* Update path value

* Update reference to bicepClient.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved-Avocado Approved-LintDiff Approved-SdkBreakingChange-Go Approve the breaking change tracking for azure-sdk-for-go ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Go new-api-version resource-manager

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants