Skip to content

cognitiveservices model for property is marked as read-only blocking functionality #39387

@pkrauss-prot

Description

@pkrauss-prot
  • Package Name: azure-mgmt-cognitiveservices
  • Package Version: 13.6.0
  • Operating System: Mac Sonoma 14.6.1
  • Python Version: 3.8

Describe the bug
I am trying to rebuild a Private Endpoint Connection using the operation begin_create_or_updateon private_endpoint_connections, However under the required param PrivateEndpointConnectionProperties and property private_endpoint the PrivateEndpoint which is made up of just ìd`is marked as read-only so does not allow for pointing the connection to the desired Private Endpoint.

To Reproduce
Steps to reproduce the behavior:

cog_client.private_endpoint_connections.begin_create_or_update(resource_group_name=resource_group_name, account_name=account_name, private_endpoint_connection_name=private_endpoint_connection_name, properties=PrivateEndpointConnectionProperties(
        private_link_service_connection_state=PrivateLinkServiceConnectionState(
            status="Approved",
            description="Approved by script"
        ),
        private_endpoint=PrivateEndpoint(
            id=f"subscriptions/{subscription_id}/resourcegroups/{resource_group_name}/providers/microsoft.network/privateendpoints/{private_endpoint_name}"
        )
    ))
Readonly attribute id will be ignored in class <class 'azure.mgmt.cognitiveservices.models._models_py3.PrivateEndpoint'>

Expected behavior
I would expect to create the connection between the account and the existing private endpoint.

Screenshots
n/a

Additional context
n/a

Metadata

Metadata

Assignees

Labels

Cognitive ServicesMgmtThis issue is related to a management-plane library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions