diff --git a/config/resources/managedidentity.hcl b/config/resources/managedidentity.hcl index b11c0750585..3d10aa01024 100644 --- a/config/resources/managedidentity.hcl +++ b/config/resources/managedidentity.hcl @@ -4,7 +4,7 @@ service "ManagedIdentity" { api "2022-01-31-preview" { package "ManagedIdentities" { definition "user_assigned_identity" { - id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}" + id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}" display_name = "User Assigned Identity" website_subcategory = "Authorization" description = "Manages a User Assigned Identity" diff --git a/tools/importer-rest-api-specs/components/parser/resourceids/common_id_user_assigned_identity.go b/tools/importer-rest-api-specs/components/parser/resourceids/common_id_user_assigned_identity.go index 04d9aa3ffee..23182afb689 100644 --- a/tools/importer-rest-api-specs/components/parser/resourceids/common_id_user_assigned_identity.go +++ b/tools/importer-rest-api-specs/components/parser/resourceids/common_id_user_assigned_identity.go @@ -22,7 +22,7 @@ func (commonIdUserAssignedIdentity) id() models.ParsedResourceId { models.StaticResourceIDSegment("providers", "providers"), models.ResourceProviderResourceIDSegment("resourceProvider", "Microsoft.ManagedIdentity"), models.StaticResourceIDSegment("userAssignedIdentities", "userAssignedIdentities"), - models.UserSpecifiedResourceIDSegment("resourceName"), + models.UserSpecifiedResourceIDSegment("userAssignedIdentityName"), }, } } diff --git a/tools/importer-rest-api-specs/components/parser/resourceids/common_id_user_assigned_identity_test.go b/tools/importer-rest-api-specs/components/parser/resourceids/common_id_user_assigned_identity_test.go index 2f3f3106f13..2eadd3f3b1b 100644 --- a/tools/importer-rest-api-specs/components/parser/resourceids/common_id_user_assigned_identity_test.go +++ b/tools/importer-rest-api-specs/components/parser/resourceids/common_id_user_assigned_identity_test.go @@ -18,7 +18,7 @@ func TestCommonResourceID_UserAssignedIdentity(t *testing.T) { models.StaticResourceIDSegment("providers", "providers"), models.ResourceProviderResourceIDSegment("resourceProvider", "Microsoft.ManagedIdentity"), models.StaticResourceIDSegment("userAssignedIdentities", "userAssignedIdentities"), - models.UserSpecifiedResourceIDSegment("resourceName"), + models.UserSpecifiedResourceIDSegment("userAssignedIdentityName"), }, } invalid := models.ParsedResourceId{ @@ -31,7 +31,7 @@ func TestCommonResourceID_UserAssignedIdentity(t *testing.T) { models.StaticResourceIDSegment("providers", "providers"), models.ResourceProviderResourceIDSegment("resourceProvider", "Microsoft.ManagedIdentity"), models.StaticResourceIDSegment("userAssignedIdentities", "userAssignedIdentities"), - models.UserSpecifiedResourceIDSegment("userIdentityName"), + models.UserSpecifiedResourceIDSegment("userAssignedIdentityName"), models.StaticResourceIDSegment("someResource", "someResource"), models.UserSpecifiedResourceIDSegment("resourceName"), },