Replies: 1 comment
-
Fixed in recent updates, no longer applicable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While using the newly uploaded Deploy-RolesPlan.ps1, which now includes Remove/Get/Set-AzRoleAssignmentRestMethod, I am receiving the following error message from the compilation for the @ splat.
Is there anyone who has faced the similar error message with the most recent push?
`> .\Deploy-RolesPlan.ps1
===================================================================================================
Read global settings from 'C:\Git\EpacTest\Definitions/global-settings.jsonc'.
PowerShell Versions: 7.4.1
PAC Environments: epac-dev, epac-prd
Definitions root folder: C:\Git\EpacTest\Definitions
Input folder: C:\Git\EpacTest\Output
Output folder: C:\Git\EpacTest\Output
Select Policy as Code environment [epac-dev, epac-prd]: epac-dev
Environment Selected: epac-dev
cloud = AzureCloud
tenant =
root scope = /providers/Microsoft.Management/managementGroups/EPAC-DEV
Telemetry is disabled
Deploy Role assignments from plan in file 'C:\EpacTest\Output/plans-epac-dev/roles-plan.json'
Plan created on 2024-02-02 16:10:20Z.
===================================================================================================
Add (44) new Role assignments
Assignment 'Virtual networks should be protected by Azure DDoS Network Protection', principalId 94dc2ae6-eb13-4991-9e6a-31945050563b, role Network Contributor(4d97b98b-1d4f-4787-a291-c67834d212e7) at /providers/Microsoft.Management/managementGroups/EPAC-DEV-Platform-Connectivity
Write-Error: C:\Git\EpacTest\Scripts\Deploy\Deploy-RolesPlan.ps1:155
Line |
155 | Set-AzRoleAssignmentRestMethod @Splat -IgnoreDuplicateErr …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Role Assignment error 400 -- {"error":{"code":"BadRequestFormat","message":"The request was incorrectly formatted."}}`
Beta Was this translation helpful? Give feedback.
All reactions