Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ian Beeson
    @KevinTipps
    as you can see the TLS handshake is failing , I also have no edgeAgent running, is this normal for the simulator
    any help is appreciated
    Xin Shi
    @shizn
    @KevinTipps Hi Ian, Python (and C) module currently is not supported with the Simulator. If you look at the Python tutorial on Docs, it still follows debug experience without the Simulator. We are working on the Python support. Once we have the official support, the tutorial will also be updated. https://docs.microsoft.com/en-us/azure/iot-edge/how-to-develop-python-module Thanks!!
    Ian Beeson
    @KevinTipps
    @shizn Thanks for the update, do you have an estimated roadmap for this 2018 Q4, 2019 Q1, etc
    Engin Polat
    @polatengin
    Hi room, I have a very basic question, I cloned the project from https://github.com/Microsoft/vscode-azure-iot-edge I want to debug some logic in generateDeployment context menu. How can I compile and install the extension from my local folder into VS Code?
    Jun Han
    @formulahendry
    @polatengin
    1. Fork and clone the repository
    2. cd vscode-azure-iot-edge
    3. Install the dependencies: npm install
    4. Open the folder in VS Code
    5. Install TSLint (not required but recommended)
    6. Press F5. Go! A new VS Code instance will open, and you could debug it.
    Michael Gerfen
    @gerfen
    When I try to "Build and Push to IotEdge Solution" from VS Code, I get an "Size of createOptions too big. The maxium size of createOptions is 4K" error. Any ideas on how to resolve the error?
    Michael Gerfen
    @gerfen
    FWIW, I've reviewed my deployment.template.json file and none of the "createOptions" are anywhere close to 4k in size.
    Wei Shen
    @adashen
    @gerfen there is a bug and we are fixing. The work around currently, is to remove the spaces and line breaks in your createOptions string. The fix will be released soon.
    Michael Gerfen
    @gerfen
    @adashen Thanks! I'll give it a try.
    Michael Gerfen
    @gerfen
    @adashen Removing the spaces and line breaks did indeed fix the issue. Thanks again!
    cdjc
    @cdjc
    Is there a way to have more than one deployment.template.json file? How would I enable the context menu for an alternative deployment file?
    cdjc
    @cdjc
    I see there's change in package.json to enable context-dependent commands on deployment.template.debug.json but this is not yet released (I'm using 1.5.1). I wonder why not make the regexp less strict: deployment.template(\..*)?.json
    Wei Shen
    @adashen
    @cdjc Thanks for the suggestion. The next release candidate will support mutiple deployment templates. (*.template.json) And you can trigger the build through command palette. Since these template files are not created/managed by our work flow and managed by the extension. We didn't give much shortcut there. But user have the freedom to trigger the commands through command palette.
    Eli
    @Scythen
    Hi all, just starting out with IoT Edge and I have a question about the modules folder in the VS Code solution. Is there any way to have the modules one level deeper? something like:
    modules
    --My1stModule
    ----module
    ----tests
    --My2ndModule
    ----module
    ----tests
    I would like to do this so that I can keep each module in a git repo and them map them into different solutions using git submodules.
    each repo would have its own tests project and module.
    Eli
    @Scythen
    I tried to add the extra level but the image placeholder in the deployment template does not seem to support this structure.
    Wei Shen
    @adashen
    @Scythen you can just put module.json directly under the Module folder. And make sure the docker file path and contextPath in it has correct reference. And project code could in deeper folder
    Marc Jacobi
    @obiwanjacobi
    Installed latest vscode extention (1.7.0) and ran pip install --upgrade iotedgehubdev but build edge solution still comes back with error: Unable to load the service index for source https://api.nuget.org/v3/index.json
    What am I missing?
    Ray Fang
    @LazarusX
    @obiwanjacobi what's the result of docker run --rm busybox ping api.nuget.org? Let's make sure internet is accessible within containers first.
    Marc Jacobi
    @obiwanjacobi
    @LazarusX Unable to find image 'busybox:latest' locally docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). See 'docker run --help'.
    Run from cmd prompt (not admin) Connection problem?
    Ray Fang
    @LazarusX
    @obiwanjacobi Yes. Look like your Docker daemon has issues with internet connection. It even failed to pull the busybox image.
    Marc Jacobi
    @obiwanjacobi
    @LazarusX Thanx for pointing me in the right direction. I could not find the problem so I reinstalled Docker and HyperV and that fixed it.
    I have a whole lot of (orphaned?) virtual network connections that may not help either... Thanx!
    Mohammadreza Sakhavar
    @MSProgrammer
    hey every one , merry xmas
    buddies , is this module take over on Edge view ?
    i want to modify edge file type , and want to VSCODE know it , is possible with this , module ?
    thak you all
    Wei Shen
    @adashen
    @MSProgrammer can you provide more information about "This module" and what is the "edge file type" ?
    Tayo Carvalhal
    @lucarv
    can't run simulator for solution, get:
    Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9229).
    Wei Shen
    @adashen
    Hi Tayo, Can you give more info where the error is shown. It seems a node debugger port. are you trying to attach to the port for node module?
    Tayo Carvalhal
    @lucarv
    it is shown in VSC as I followed the tutorial at https://docs.microsoft.com/en-us/azure/iot-edge/how-to-vs-code-develop-module step by step
    Wei Shen
    @adashen
    @lucarv Are you trying to attach to node module for debugging? If so please make sure you are using the debug flavor image of node module and port 9229 is accessible externally. You can verify this by opening http://<target-machine-IP>:9229/json on the debugger machine. This URL should show information about the Node.js module to be debugged.
    Mohammadreza Sakhavar
    @MSProgrammer
    شیسی
    SG
    @SaravananGajendran
    @MSProgrammer , I get access denied error when i start build the azure iot edge module from VS2019.. C:\Users\471231\Documents\Visual Studio 2019\iotedgehubdev\v0.13.0\iotedgehubdev start -d "C:\projects\poc\test-project\AzureIotEdgeApp1\obj\tmp_deployment_for_local_debug.json" .. Can you please help me on this
    SG
    @SaravananGajendran
    Hi, I get access denied error when i start build the azure iot edge module from VS2019.. C:\Users\471231\Documents\Visual Studio 2019\iotedgehubdev\v0.13.0\iotedgehubdev start -d "C:\projects\poc\test-project\AzureIotEdgeApp1\obj\tmp_deployment_for_local_debug.json" .. Can you please help me on this
    SG
    @SaravananGajendran
    @SaravananGajendran , The issue was my corporate antivirus was deleting the iotedgehuddev.exe and now its been excluded from the scanning list.
    Albert
    @pospospos2007
    Hi guys I have a queston. Is there anyoone using Azure iot hub. Im looking for a test framework to test our moudle . As u know the module is running as a container , it make us hard to troubleshoot the issue. Do you have any idea to test that?
    yy354
    @aliciayuting
    Hi , I am trying to stop running the module on my VS code, is there any idea of how to stop them? I created a solution that started running them at first
    Ilyas F
    @ilyas-it83
    Hi All, I'm stuck with the Azure IoT Edge installation with X509 certificates receiving an error as captured in this thread. https://github.com/Azure/iotedge/issues/2395#issuecomment-579385909.. Not a pro in Linux... anyone understands what the user is suggesting here?
    dhavenridge
    @dhavenridge
    Hello all. My first post here. I am trying to build and push my first iot edge solution. The commands execute in my powershell terminal, but I get an error on the curl step that says "no internet connection". Is this a known thing? I definitely have a connection. The curl powershell alias is set, but removing it does not help. Following is the error message:

    => ERROR [base 4/4] RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg 2.8s

    [base 4/4] RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg:

    #8 2.379 Info: Previous installation at '/home/moduleuser/vsdbg' not found

    #8 2.379 Info: Using vsdbg version '16.9.20122.2'

    #8 2.379 Info: Creating install directory

    #8 2.381 Using arguments

    #8 2.381 Version : 'latest'

    #8 2.381 Location : '/home/moduleuser/vsdbg'

    #8 2.381 SkipDownloads : 'false'

    #8 2.381 LaunchVsDbgAfter : 'false'

    #8 2.382 RemoveExistingOnUpgrade : 'false'

    #8 2.391 Info: Using Runtime ID 'linux-x64'

    #8 2.720

    #8 2.720 ERROR: No internet connection.


    executor failed running [/bin/sh -c curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg]: exit code: 1

    Orrin Edenfield
    @OrrinEdenfield
    Hello - Sorry if this is not the right place to ask but I just saw a notification from Windows Defender about a trojan that was found in C:\Users\MYUSER.vscode\extensions\vsciot-vscode.azure-iot-edge-1.23.0\iotedgehubdev\0.14.5\iotedgehubdev.exe This seems like an issue with the extension but wanted to check with others.
    NVRaghu
    @NVRaghu
    How is this error message useful ?
    Unexpected token c in JSON at position 7978
    you should at-least provide what is the line number where the problem is ?
    How can someone even use this
    Paweł Grudzień
    @pgrudzien12
    Hi, I'm working with VS Code extension and Iot Hub, we have 1000'ds (in dev env) of devices and it seems that after some threshold vscode cannot display/load all the devices. That creates a problem for me to setup the simulator as it asks me to pick the device from the IoT Hub which it cannot load (it loads hundreds of others but I cannot see mine). Is there a workaround where I could put device connection string directly?
    Paweł Grudzień
    @pgrudzien12
    image.png
    Paweł Grudzień
    @pgrudzien12
    ok nevermind it looks like this is a known issue: microsoft/vscode-azure-iot-toolkit#537
    Manvkat
    @Manvkat
    Hello team, I am facing this same issue, Is there a known fix to this? microsoft/vscode-azure-iot-toolkit#536
    Iain White
    @iainwhiteigs
    Is it a known issue that a lot of the shortcuts don't work in windows? For example "Build and Push IoT Edge Module Image" tries to run one command after another but not in a format that the windows command line understands: docker build --rm -f "c:\edge-modules\src\EdgeModules\modules\MyModule\Dockerfile.amd64" -t myacr.azurecr.io/my-module:0.0.1-amd64 "c:\edge-modules\src\EdgeModules\modules\MyModule" ; if ($?) { docker push muacr.azurecr.io/my-module:0.0.1-amd64 } Which results in ""docker build" requires exactly 1 argument.
    See 'docker build --help'." I know I can separate out the command or create my own .bat file but it just annoys me sometimes that it doesn't just work. Any suggestions on how to fix this?