Open briglx opened 5 years ago
This also happens for a scope of
/subscriptions/mysub/resourceGroups/myrg/providers/Microsoft.Sql/databases/mysql/master
@darshanhs90 Can you take alook?
Any progress on this? I'm following the steps at https://github.com/rmbolger/Posh-ACME/blob/master/Posh-ACME/DnsPlugins/Azure-Readme.md and hitting:
` New-AzRoleDefinition : Scope '/subscriptions' should have even number of parts. At line:1 char:10
+ CategoryInfo : CloseError: (:) [New-AzRoleDefinition], ArgumentException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureRoleDefinitionCommand
`
@markcowl , @darshanhs90 any progress on this?
@briglx , have you found any workarounds for this?
any progress please?
Have it also on: providers/Microsoft.Network/virtualNetworkLinks/privatelink.vaultcore.azure.net
any solution for this?
@darshanhs90
I also have this problem, any updates?
Description
I'm attempting to find all assignments on every resource in a subscription.
The exception, "Scope should have even number of parts.", happens with the call to
Get-AzRoleAssignment
Example Scope:
"/subscriptions/mysubid/resourceGroups/myrgname/providers/Microsoft.Compute/extensions/confluence/OmsAgentForLinux"
Looks like the problem is found here: azure-powershell/src/Resources/Resources/Models.Authorization/AuthorizationClient.cs
Steps to reproduce
Given a resource exists that creates a scope called
"/subscriptions/mysubid/resourceGroups/myrgname/providers/Microsoft.Compute/extensions/confluence/OmsAgentForLinux"
Environment data
Module versions
Debug output
Error output