You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out if I've completely misunderstood what is possible with EPAC or if I've misconfigured my global-settings.jsonc. We are trying to use Release Flow and we have the following MG hierarchy.
We've got two PAC selectors "nonprod" and "prod" where the nonprod lists the prod subs in the globalNotScopes and prod lists the Dev and QA subs in the globalNotScopes.
They each create their respective assignment as expected excluding the correct subs/resources, but the issue is that when we deploy to prod it deletes the nonProd assignment and vice versa. How do we get two selectors at the same root scope to leave the others assignment alone?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to figure out if I've completely misunderstood what is possible with EPAC or if I've misconfigured my global-settings.jsonc. We are trying to use Release Flow and we have the following MG hierarchy.
Tenant Root
-- mg-org
---- mg-division1
------ mg-subdivision1
-------- Subscription: division1 subdvision1 DEV
-------- Subscription: division1 subdvision1 QA
-------- Subscription: division1 subdvision1 Prod
------ mg-subdivision2
-------- Subscription: division1 subdvision2 DEV
-------- Subscription: division1 subdvision2 QA
-------- Subscription: division1 subdvision2 Prod
---- mg-division2
------ mg-subdivision1
-------- Subscription: division2 subdvision1 DEV
-------- Subscription: division2 subdvision1 QA
-------- Subscription: division2 subdvision1 Prod
------ mg-subdivision2
-------- Subscription: division2 subdvision2 DEV
-------- Subscription: division2 subdvision2 QA
-------- Subscription: division2 subdvision2 Prod
etc...
We've got two PAC selectors "nonprod" and "prod" where the nonprod lists the prod subs in the globalNotScopes and prod lists the Dev and QA subs in the globalNotScopes.
etc.
],
"managedIdentityLocation": "eastus"
},
{
"pacSelector": "nonprod",
"cloud": "AzureCloud",
"tenantId": "XXXXXX",
"deploymentRootScope": "/providers/Microsoft.Management/managementGroups/mg-fdic",
"desiredState": {
"excludedPolicySetDefinitions": [],
"excludedPolicyAssignments": [],
"excludedPolicyDefinitions": [],
"strategy": "ownedOnly",
"keepDfcSecurityAssignments": true,
"excludedScopes": []
},
"globalNotScopes": [
"/subscriptions/9a96361a-746c-4762-b7d5-2db22e227552", // Division1 SubDivision1 Prod
"/subscriptions/e36a86ee-9789-4a48-9505-f86dada82520", // Division1 SubDivision2 Prod
"/subscriptions/07e4e9cb-1bf5-4063-bb6d-206c4ef44b94", // Division2 SubDivision1 Prod
etc.
],
"managedIdentityLocation": "eastus"
},
We then define the an assignment with children
"children": [
{
"nodeName": "Prod/",
"assignment": {
"name": "pr-",
"displayName": "Prod ",
"description": "Prod Environment controls enforcement with "
},
"parameters": {
"vmDomainRequiredTagsEffect": "Audit",
"mlPublicIPEffect": "Deny"
},
"scope": {
"prod": [
"/providers/Microsoft.Management/managementGroups/mg-org"
]
}
},
{
"nodeName": "NonProd/",
"assignment": {
"name": "np-",
"displayName": "NonProd ",
"description": "Non Prod Environment controls enforcement with "
},
"parameters": {
"vmDomainRequiredTagsEffect": "Deny",
"mlPublicIPEffect": "Deny"
},
"scope": {
"nonprod": [
"/providers/Microsoft.Management/managementGroups/mg-org"
] }
},
They each create their respective assignment as expected excluding the correct subs/resources, but the issue is that when we deploy to prod it deletes the nonProd assignment and vice versa. How do we get two selectors at the same root scope to leave the others assignment alone?
Beta Was this translation helpful? Give feedback.
All reactions