Skip to content

Copy‐PIMAzureResourcePolicy

Loïc MICHEL edited this page Jan 26, 2024 · 2 revisions

Description:

Copy the rules from role $copyFrom to $rolename at the specified subscription/scope

Samples:

🔷 Copy settings from the role Contributor to the roles webmaster and role1

Copy-PIMAzureResourcePolicy -TenantID <tenantID> -SubscriptionId <subscriptionID> -rolename "webmaster", "role1" -copyFrom "contributor"

Parameters:

Parameter description
$TenantID Entra ID TenantID
$SubscriptionId Subscription ID
$SubscriptionId If you want to manage the role at other scope than subscription
$roleName Name of the role to configure
$copyFrom Name of the role containing the settings to copy

📝 Documentation

Clone this wiki locally