Skip to content

mgmt, resource update sample may have bug #2214

@weidongxu-microsoft

Description

@weidongxu-microsoft

swagger has identity, example also has it.
https://github.com/joannajiang112628/azure-rest-api-specs/blob/c9b373e139e99eb283da5a46196257a57b31e9fe/specification/communication/resource-manager/Microsoft.Communication/preview/2023-04-01-preview/CommunicationServices.json#L824-L851

Also, generated interface does have WithIdentity and WithLinkedDomain.

But sample generated in SDK seems without the identity and linkedDomains. Only tag exists.

    public static void updateResourceToAddAUserAssignedManagedIdentity(
        com.azure.resourcemanager.communication.CommunicationManager manager) {
        CommunicationServiceResource resource =
            manager
                .communicationServices()
                .getByResourceGroupWithResponse(
                    "MyResourceGroup", "MyCommunicationResource", com.azure.core.util.Context.NONE)
                .getValue();
        resource.update().withTags(mapOf("newTag", "newVal")).apply();
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    MgmtThis issue is related to a management-plane library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions