Skip to content

Export‐PIMEntraRolePolicy

Loïc MICHEL edited this page Mar 5, 2024 · 2 revisions

Description:

Export the rules of rolename to a csv file

Samples:

🔷 Export configuration of all roles at a subscription scope to c:\temp\pim.csv

Backup-PIMAzureResourcePolicy -TenantID <tenantID> -SubscriptionId <subscriptionID> -exportFilename c:\temp\RG.csv

🔷 Export configuration of all roles at a Management Group scope to c:\temp\MG.csv

$scope = "providers/Microsoft.Management/managementGroups/MG_All_Subscriptions"
Backup-PIMAzureResourcePolicy -tenantID $tenantID -scope $scope -exportFilename c:\temp\MG.csv

Parameters:

Parameter description
$TenantID Entra ID TenantID
$SubscriptionId Subscription ID
$Scope If you want to manage the role at other scope than subscription
$exportFilename Path to csv file

📝 Documentation

Clone this wiki locally