diff --git a/pages/articles/azurefunctions.md b/pages/articles/azurefunctions.md index bb7e5c509..9e5d31ba4 100644 --- a/pages/articles/azurefunctions.md +++ b/pages/articles/azurefunctions.md @@ -170,7 +170,7 @@ In this following example we create a new Azure AD Application registration whic ```powershell $password = Read-Host -Prompt "Enter certificate password" -AsSecureString -Register-PnPAzureADApp -ApplicationName "MyDemoApp" -Tenant [yourtenant.onmicrosoft.com] -CertificatePassword $password -Interactive +Register-PnPEntraIDApp -ApplicationName "MyDemoApp" -Tenant [yourtenant.onmicrosoft.com] -CertificatePassword $password ``` You will be asked to authenticate. Log in using an account that has the permissions to create an app registration in your Azure Active Directory. After logging in, the following actions will automatically be taken: diff --git a/pages/articles/registerapplication.md b/pages/articles/registerapplication.md index 413e9d17a..8ffd883d4 100644 --- a/pages/articles/registerapplication.md +++ b/pages/articles/registerapplication.md @@ -18,7 +18,7 @@ Proceed in the section below which matches with your desired option for creating PnP PowerShell has a cmdlet that allows you to register a new Entra ID Application specifically for interactive login. Notice that you need to be able to create App registrations in your Entra ID. ```PowerShell -Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "PnP Rocks" -Tenant [yourtenant].onmicrosoft.com -Interactive +Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "PnP Rocks" -Tenant [yourtenant].onmicrosoft.com ``` When you run the cmdlet above you will be asked to authenticate with your username, password and an optional second factor. After that a new app will be registered in the Entra ID (make sure you have the rights to do this). By default a limited set of permissions scopes is added, but you can provide the one of the permission parameters (`GraphApplicationPermissions`, `GraphDelegatePermissions`, `SharePointApplicationPermissions`, `SharePointDelegatePermissions`) to provide your own permission scopes. @@ -138,7 +138,7 @@ In order to set up your application registration on a GCC or a national cloud en I.e. for an application registration meand for interactive login, use: ```PowerShell -Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "PnP Rocks" -Tenant [yourtenant].onmicrosoft.com -Interactive -AzureEnvironment [USGovernment|USGovernmentHigh|USGovernmentDoD|Germany|China] +Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "PnP Rocks" -Tenant [yourtenant].onmicrosoft.com -AzureEnvironment [USGovernment|USGovernmentHigh|USGovernmentDoD|Germany|China] ``` And for an App Only application registration, use: