Skip to content

Commit 29f1e70

Browse files
authored
Merge pull request #3249 from microsoftgraph/auth-modules-metadata
Adds Metadata for authentication module cmdlets.
2 parents 321dbe2 + b88e77c commit 29f1e70

File tree

4 files changed

+498
-0
lines changed

4 files changed

+498
-0
lines changed

.azure-pipelines/generation-templates/generate-command-metadata.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ steps:
99
pwsh: true
1010
script: |
1111
. $(System.DefaultWorkingDirectory)/tools/PostGeneration/NewCommandMetadata.ps1 -SourcePath "$(System.DefaultWorkingDirectory)/src/" -IncludePermissions -Debug
12+
- task: PowerShell@2
13+
- task: PowerShell@2
14+
displayName: Generate authentication module metadata
15+
inputs:
16+
targetType: inline
17+
pwsh: true
18+
script: |
19+
. $(System.DefaultWorkingDirectory)/tools/PostGeneration/AuthModuleMetadata.ps1
1220
1321
- task: Bash@3
1422
displayName: Push command metadata

.azure-pipelines/generation-templates/workload-modules.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ steps:
3939
pwsh: true
4040
script: |
4141
. $(System.DefaultWorkingDirectory)/tools/PostGeneration/FindDuplicateCommand.ps1 -SourcePath "$(System.DefaultWorkingDirectory)/src/"
42+
- task: PowerShell@2
43+
displayName: Generate authentication module metadata
44+
inputs:
45+
targetType: inline
46+
pwsh: true
47+
script: |
48+
. $(System.DefaultWorkingDirectory)/tools/PostGeneration/AuthModuleMetadata.ps1
4249
4350
- ${{ if eq(parameters.Sign, true) }}:
4451
- template: ../common-templates/esrp/strongname.yml

src/Authentication/Authentication/custom/common/MgCommandMetadata.json

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592123,5 +592123,173 @@
592123592123
"ApiReferenceLink": null,
592124592124
"Uri": "/users/{user-id}/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent-id}/appLogCollectionRequests/{appLogCollectionRequest-id}",
592125592125
"Module": "Beta.Devices.CorporateManagement"
592126+
},
592127+
{
592128+
"Command": "Connect-MgGraph",
592129+
"Method": "POST",
592130+
"Module": "Authentication",
592131+
"CommandAlias": null,
592132+
"Permissions": [],
592133+
"ApiVersion": null,
592134+
"OutputType": "System.Object",
592135+
"Variants": [],
592136+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/connect-mggraph?view=graph-powershell-1.0",
592137+
"Uri": null
592138+
},
592139+
{
592140+
"Command": "Add-MgEnvironment",
592141+
"Method": null,
592142+
"Module": "Authentication",
592143+
"CommandAlias": null,
592144+
"Permissions": [],
592145+
"ApiVersion": null,
592146+
"OutputType": "Microsoft.Graph.PowerShell.Authentication.Models.GraphEnvironment",
592147+
"Variants": [],
592148+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/add-mgenvironment?view=graph-powershell-1.0",
592149+
"Uri": null
592150+
},
592151+
{
592152+
"Command": "Get-MgEnvironment",
592153+
"Method": null,
592154+
"Module": "Authentication",
592155+
"CommandAlias": null,
592156+
"Permissions": [],
592157+
"ApiVersion": null,
592158+
"OutputType": "Microsoft.Graph.PowerShell.Authentication.Models.GraphEnvironment",
592159+
"Variants": [],
592160+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/get-mgenvironment?view=graph-powershell-1.0",
592161+
"Uri": null
592162+
},
592163+
{
592164+
"Command": "Remove-MgEnvironment",
592165+
"Method": null,
592166+
"Module": "Authentication",
592167+
"CommandAlias": null,
592168+
"Permissions": [],
592169+
"ApiVersion": null,
592170+
"OutputType": "System.Object",
592171+
"Variants": [],
592172+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/remove-mgenvironment?view=graph-powershell-1.0",
592173+
"Uri": null
592174+
},
592175+
{
592176+
"Command": "Set-MgEnvironment",
592177+
"Method": null,
592178+
"Module": "Authentication",
592179+
"CommandAlias": null,
592180+
"Permissions": [],
592181+
"ApiVersion": null,
592182+
"OutputType": "System.Object",
592183+
"Variants": [],
592184+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/set-mgenvironment?view=graph-powershell-1.0",
592185+
"Uri": null
592186+
},
592187+
{
592188+
"Command": "Disconnect-MgGraph",
592189+
"Method": null,
592190+
"Module": "Authentication",
592191+
"CommandAlias": null,
592192+
"Permissions": [],
592193+
"ApiVersion": null,
592194+
"OutputType": "Microsoft.Graph.PowerShell.Authentication.IAuthContext",
592195+
"Variants": [],
592196+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/disconnect-mggraph?view=graph-powershell-1.0",
592197+
"Uri": null
592198+
},
592199+
{
592200+
"Command": "Find-MgGraphCommand",
592201+
"Method": null,
592202+
"Module": "Authentication",
592203+
"CommandAlias": null,
592204+
"Permissions": [],
592205+
"ApiVersion": null,
592206+
"OutputType": "Microsoft.Graph.PowerShell.Authentication.Models.IGraphCommand",
592207+
"Variants": [],
592208+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/find-mggraphcommand?view=graph-powershell-1.0",
592209+
"Uri": null
592210+
},
592211+
{
592212+
"Command": "Find-MgGraphPermission",
592213+
"Method": null,
592214+
"Module": "Authentication",
592215+
"CommandAlias": null,
592216+
"Permissions": [],
592217+
"ApiVersion": null,
592218+
"OutputType": "System.Array",
592219+
"Variants": [],
592220+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/find-mggraphpermission?view=graph-powershell-1.0",
592221+
"Uri": null
592222+
},
592223+
{
592224+
"Command": "Get-MgContext",
592225+
"Method": null,
592226+
"Module": "Authentication",
592227+
"CommandAlias": null,
592228+
"Permissions": [],
592229+
"ApiVersion": null,
592230+
"OutputType": "Microsoft.Graph.PowerShell.Authentication.IAuthContext",
592231+
"Variants": [],
592232+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/get-mgcontext?view=graph-powershell-1.0",
592233+
"Uri": null
592234+
},
592235+
{
592236+
"Command": "Get-MgGraphOption",
592237+
"Method": null,
592238+
"Module": "Authentication",
592239+
"CommandAlias": null,
592240+
"Permissions": [],
592241+
"ApiVersion": null,
592242+
"OutputType": "Microsoft.Graph.PowerShell.Authentication.IGraphOption",
592243+
"Variants": [],
592244+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/get-mggraphoption?view=graph-powershell-1.0",
592245+
"Uri": null
592246+
},
592247+
{
592248+
"Command": "Get-MgRequestContext",
592249+
"Method": null,
592250+
"Module": "Authentication",
592251+
"CommandAlias": null,
592252+
"Permissions": [],
592253+
"ApiVersion": null,
592254+
"OutputType": "Microsoft.Graph.PowerShell.Authentication.Core.Interfaces.IRequestContext",
592255+
"Variants": [],
592256+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/get-mgrequestcontext?view=graph-powershell-1.0",
592257+
"Uri": null
592258+
},
592259+
{
592260+
"Command": "Invoke-MgGraphRequest",
592261+
"Method": null,
592262+
"Module": "Authentication",
592263+
"CommandAlias": null,
592264+
"Permissions": [],
592265+
"ApiVersion": null,
592266+
"OutputType": "System.Object",
592267+
"Variants": [],
592268+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/invoke-mggraphrequest?view=graph-powershell-1.0",
592269+
"Uri": null
592270+
},
592271+
{
592272+
"Command": "Set-MgGraphOption",
592273+
"Method": null,
592274+
"Module": "Authentication",
592275+
"CommandAlias": null,
592276+
"Permissions": [],
592277+
"ApiVersion": null,
592278+
"OutputType": "System.Object",
592279+
"Variants": [],
592280+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/set-mggraphoption?view=graph-powershell-1.0",
592281+
"Uri": null
592282+
},
592283+
{
592284+
"Command": "Set-MgRequestContext",
592285+
"Method": null,
592286+
"Module": "Authentication",
592287+
"CommandAlias": null,
592288+
"Permissions": [],
592289+
"ApiVersion": null,
592290+
"OutputType": "Microsoft.Graph.PowerShell.Authentication.Core.Interfaces.IRequestContext",
592291+
"Variants": [],
592292+
"ApiReferenceLink": "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/set-mgrequestcontext?view=graph-powershell-1.0",
592293+
"Uri": null
592126592294
}
592127592295
]

0 commit comments

Comments
 (0)