Skip to content

Local Cloud Debugging

Rohit Agrawal - MSFT edited this page Apr 16, 2019 · 17 revisions

Following steps will guide you through the steps that need to be followed in order to locally debug the projects

Services

You will need to import the certificate used by your Service Fabric cluster to your local box. On azure portal, open the SF keyvault and download the primary certificate. Then, import the cert to both - local computer and current user. After the cert has been imported to Local computer, right click on the cert -> select 'All task' -> Manage private keys -> Add 'NETWORK SERVICE'.

DataX.Flow

  • Open DataX.Flow.sln in VisualStudio (Run Visual Studio as admin)
  • In DataX.Flow project, open Local.1Node.xml file under ApplicationParameters folder
  • Set values for the following parameters:
    • AppInsightsIntrumentationKey - Eg.: configgen-aiInstrumentationKey
    • cosmosDBConfigCollectionName - Eg.: configgenConfigs
    • cosmosDBConfigConnectionString - Eg.: keyvault:///configgen-configgenconfigs
    • cosmosDBConfigDatabaseName - Eg.: keyvault:///configgen-configgenconfigsdatabasename
    • ServiceKeyvaultName - Eg.: kvServicesdx123
    • AzureServicesAuthConnectionString - Look for a secret called 'configgen-azureservicesauthconnectionstring'. Only copy the 'Value' part here. (eg.: RunAs=App;AppId=;TenantId=;CertificateThumbprint=;CertificateStoreLocation=LocalMachine)
  • In Flow.ManagementService project, open FlowManagementController.cs file
  • Within GetAllFlowsMin method add a breakpoint and comment out the following line
RolesCheck.EnsureReader(Request, _isLocal);

Links

Data Accelerator

Install

Docs

Clone this wiki locally