You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operations that have *SkypeForBusiness* in their operation Ids are generated as commands with incorrect subject names. It looks like AutoREST.PowerShell truncates everything after *Skype in *SkypeForBusiness*. e.g.,
This operation with operationId: reports_getSkypeForBusinessActivityCounts:
'/reports/microsoft.graph.getSkypeForBusinessActivityCounts(period=''{period}'')':get:
tags:
- reports.Functionssummary: Invoke function getSkypeForBusinessActivityCountsoperationId: reports_getSkypeForBusinessActivityCounts
ends up being generated as Get-MgReportSkype instead of the expected Get-MgReportSkypeForBusinessActivityCount.
Inspect the generate cmdlets folder. You'll notice all cmdlets that call /reports/microsoft.graph.getSkypeForBusiness* are generated as Get-MgReportSkype.
Environment
Tested with both autorest/powershell v2.1.401 and v3.0.402.
It is by design. If there are preposition like ['with', 'at', 'by', 'for', 'in', 'of'] in the operationId, the preposition and following part will be truncated. In this case, we think the operationId is 'DoActionWithStyle' and we will truncate the withstyle part. So for your case, only one cmdlet will be generated, and there will be one parameter set for each forxxx. If you expect one cmdlet per get, you may replace 'for' with some placeholder in the operationId and then using a directive to rename the subject.
Operations that have
*SkypeForBusiness*
in their operation Ids are generated as commands with incorrect subject names. It looks like AutoREST.PowerShell truncates everything after*Skype
in*SkypeForBusiness*
. e.g.,This operation with
operationId: reports_getSkypeForBusinessActivityCounts
:ends up being generated as
Get-MgReportSkype
instead of the expectedGet-MgReportSkypeForBusinessActivityCount
.Repro Steps:
input-file
:/reports/microsoft.graph.getSkypeForBusiness*
are generated asGet-MgReportSkype
.Environment
Related to microsoftgraph/msgraph-sdk-powershell#628.
The text was updated successfully, but these errors were encountered: