SkillAgentSearch skills...

CloneApp

Export and Import Azure AD App API Permissions

Install / Use

/learn @kevinblumenfeld/CloneApp
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

CloneApp

CloneApp clones the API Permissions of an Azure AD App to the same or another tenant. You export an XML file and import to create a new App.

Can also be imported via a Gist.

Installation

Install-Module AzureAD
Install-Module CloneApp

Syntax

Connect

Connect-AzureAD

Export

Export-AzureADApp -Name TestApp -Path C:\temp\

Import

$params = @{
    Owner               = 'admin@contoso.onmicrosoft.com'
    XMLPath             = 'C:\temp\TestApp-20200808-0349.xml'
    Name                = 'NewApp'
    SecretDurationYears = 10
    ConsentAction       = 'Both'
}
Import-AzureADApp @params

Import from GIST

$params = @{
    Owner               = 'admin@contoso.onmicrosoft.com'
    GithubUsername      = 'kevinblumenfeld'
    GistFilename        = 'testapp.xml'
    Name                = 'NewApp'
    SecretDurationYears = 10
    ConsentAction       = 'Both'
}
Import-AzureADApp @params

Example Usage

example-usage

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated3y ago
Forks2

Languages

PowerShell

Security Score

55/100

Audited on Sep 20, 2022

No findings