Skip to content

custom .cspkg deployment but can't give .cscfg -> can't customize Network Configuration #155

@smoothdeveloper

Description

@smoothdeveloper

I'm trying to setup my mbrace cluster in a specific virtual network.

I've found in Azure documentation that this is defined in with <NetworkConfiguration/> element.

<NetworkConfiguration>
    <VirtualNetworkSite name="MyVirtualNetworkName"/>
        <AddressAssignments>
            <InstanceAddress roleName="MBrace.Azure.WorkerRole">
                <Subnets>
                    <Subnet name="MySubnetName"/>
                </Subnets>
            </InstanceAddress>
        </AddressAssignments>
</NetworkConfiguration>

Doing so and packaging my own .cspkg, I was still facing issues with machines not being deployed in same virtual network, and even machines within same cloud service won't be able to open TCP connections between each-others (despite the ports I've defined in ServiceDefinition.csdef are correctly visible in portal).

I've looked at

let buildMBraceConfig serviceName instances useDiagnostics
and found that this is actual configuration being passed while deploying mbrace cluster, and that a way to override this was maybe the solution to my problem.

I've made a fork with rough extension point to try out: smoothdeveloper@084e5db which I used and am confirming this is the solution to be able to specify arbitrary network configuration on deployment, as well as whatever else can be defined in ServiceConfiguration.Cloud.cscfg files.

Do you see any other way to be able to pass my own config? Should I make a PR from my custom branch and if so what do you want me to modify?

Thanks!

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