Skip to content

Needs to be updated to using PowerShell module Microsoft Graph #8000

@pmatthews05

Description

@pmatthews05

The code in this example is going out of date with Windows Azure Graph being depreciated. According to other documents, the powershell module that should be used is "Microsoft Graph"

Information about the switch of function names can be found in this very helpful Microsoft Document.
https://docs.microsoft.com/en-us/powershell/microsoftgraph/azuread-msoline-cmdlet-map?view=graph-powershell-beta

I have tried by myself to do this just with Microsoft Graph, however, I'm unable to work out how to renew my SharePoint Add In when they expire using the new commands.
Add-MgServicePrincipalKey
Add-MgServicePrincipalPassword

The examples for the above commands do not seem clear enough, that allows me to work out how to correctly to renew the expired SharePoint add-in.

Links in the document for the Prerequisites

When you look up information on MSOnline Module, the note at the top of the page says:

Note: this is the older MSOnline V1 PowerShell module for Azure Active Directory. Customers are encouraged to use the newer Azure Active Directory V2 PowerShell module instead of this module. For more information about the V2 module please see Azure Active Directory V2 PowerShell.

When you follow the link through to Active Directory V2 Powershell this also take you to AzureAD.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docsCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions