-
Notifications
You must be signed in to change notification settings - Fork 4k
[PS] Migrate Resource module Authorization part to autorest v4 #27902
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the Authorization cmdlet module to use AutoRest v4 by updating generated documentation, metadata, and assembly info to align with the new code generator and add JSON-based parameter sets.
- Updated many cmdlet markdown files: removed outdated
-InputObject
sections, introducedCreateViaJsonFilePath
/CreateViaJsonString
parameter sets, adjustedParameter Sets
annotations, and standardized output model references. - Updated
Az.Authorization.md
and module metadata: bumped Module Guid, added new Update- cmdlets entries, and increasedAz.Accounts
dependency version. - Added a generated
AssemblyInfo.cs
for assembly metadata and versioning.
Reviewed Changes
Copilot reviewed 57 out of 57 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
docs/*.md | Refactored cmdlet syntax blocks, parameter sets, types, and outputs |
docs/Az.Authorization.md | Updated help index entries, Module Guid, and dependency bump |
README.md | Adjusted AutoRest directives |
Properties/AssemblyInfo.cs | Added generated assembly metadata |
Az.Authorization.nuspec | Bumped Az.Accounts dependency version |
Comments suppressed due to low confidence (2)
src/Resources/Authorization.Autorest/docs/New-AzRoleManagementPolicyAssignment.md:21
- Consider adding or updating Pester tests to cover the new JsonFilePath and JsonString parameter sets for this cmdlet.
### CreateViaJsonFilePath
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert a space after the period so it reads '... Code Generator. Changes may cause ...'.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code | |
// Code generated by Microsoft (R) AutoRest Code Generator. Changes may cause incorrect behavior and will be lost if the code |
Copilot uses AI. Check for mistakes.
disable-table-view feature is missing, need confirm if this is expected. |
Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.