code: def get_linked_properties(cli_ctx, app, resource_group, read_properties=None, write_properties=None):
      
      roles = {
          "ReadTelemetry": "api",
          "WriteAnnotations": "annotations",
          "AuthenticateSDKControlChannel": "agentconfig"
      }
  
      sub_id = get_subscription_id(cli_ctx)
      tmpl = '/subscriptions/{}/resourceGroups/{}/providers/microsoft.insights/components/{}'.format(
          sub_id,
          resource_group,
          app
      )
      linked_read_properties, linked_write_properties = [], []
  
      if isinstance(read_properties, list):
          propLen = len(read_properties)
          linked_read_properties = ['{}/{}'.format(tmpl, roles[read_properties[i]]) for i in range(propLen)]
      else:
          linked_read_properties = ['{}/{}'.format(tmpl, roles[read_properties])]
      if isinstance(write_properties, list):
          propLen = len(write_properties)
          linked_write_properties = ['{}/{}'.format(tmpl, roles[write_properties[i]]) for i in range(propLen)]
      else:
          linked_write_properties = ['{}/{}'.format(tmpl, roles[write_properties])]
      return linked_read_properties, linked_write_properties
docs: Maps user-facing role names to strings used to identify them on resources.