Skip to content

Echo bot on Service Fabric - Media Platform issue #848

@luko28

Description

@luko28

Hi, from version 1.28 of Microsoft.Skype.Bots.Media there is new requirement to startup script:

 # Delete ssl cert bindings
  netsh http delete sslcert ipport=%InstanceIpAddress%:%InstanceMediaControlPort%
  
  # Delete http registrations
  netsh http delete urlacl url=https://+:%InstanceMediaControlPort%/
  
  # Bind ssl cert to the IP/Port
  netsh http add sslcert ipport=%InstanceIpAddress%:%InstanceMediaControlPort% "appid={00000000-0000-0000-0000-000000000001}" cert=%ServerCertificate%
[...]

Getting enpoint port and certificate isn't such a problem, but how to get %InstanceIpAddress% ?
Working on Cloud Service I used:
<Variable name="InstanceIpAddress"> <RoleInstanceValue xpath="/RoleEnvironment/CurrentInstance/Endpoints/Endpoint[@name='InstanceMediaControlEndpoint']/@address" /> </Variable>

How to get that Ip when working as Service Fabric application?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions