[BUG] Microsoft.ContainerRegistry
@ 2023-07-01
- IdentityProperties
for CredentialSets
define identity modes not supported by the API #32154
Open
Description
API Spec link
API Spec version
2023-07-01
Describe the bug
The spec defines support for UserAssigned
and SystemAssigned, UserAssigned
identities for CredentialSets
, but when trying to create a Credential Set with either of these identity modes an API error is returned:
{
"error": {
"code": "CannotSetResourceIdentity",
"message": "Resource type 'Microsoft.ContainerRegistry/registries/credentialSets' does not support creation of 'UserAssigned' resource identity. The supported types are 'SystemAssigned'."
}
}
{
"error": {
"code": "CannotSetResourceIdentity",
"message": "Resource type 'Microsoft.ContainerRegistry/registries/credentialSets' does not support creation of 'SystemAssigned, UserAssigned' resource identity. The supported types are 'SystemAssigned'."
}
}
Expected behavior
That only SystemAssigned
is defined for the type
field in IdentityProperties
, or the API is updated to support these modes.
Actual behavior
Identity types are defined that are not supported by the API
Reproduction Steps
Try and create a Credential Set resource with UserAssigned
or SystemAssigned, UserAssigned
Identity via the API
Environment
No response
Metadata
Assignees
Labels
This issue is related to a management-plane library.This issue requires a change to an existing behavior in the product in order to be resolved.Issues that are reported by GitHub users external to the Azure organization.The issue doesn't require a change to the product in order to be resolved. Most issues start as that