Great video Christos! I'm wondering if you have the plan to perform the same using Python v2 programming model. I tried to implement by myself but so far I've failed (not able to enable fastapi with microsoft AD in v2)
Thanks for the kind comments. Unfortunately I’ve moved away from that space and I’m not actively working on this any more. I would highly recommend that you reach out to the Azure AD team to ask for support with Python 2. I hope this helps…
Great video. Thanks a lot. But I have some problems running the code: 1. azure func-tool uses system python and not the vend-python. For this, I needed to install fastapi and other stuff using system pip. 2. In weather.py-file requires_auth-function needs an "f" parameter. Otherwise, it raises type-error. I am grateful for any support.
Do you know why ciuld have this error: ModuleNotFoundError: No module named "routers". I don't kno wwhy this can happen because I created the directory as you did and the weatehr.py as you wrote it
When I hit Generate Token, absolutely nothing is happening. Haha. Dead in the water. No browser window open. Going back to the beginning of the video to see if I messed something up, or maybe something has changed? In any case, this is an awesome video for understanding the pieces of this.
If anyone else runs into this problem, it would probably just be the wrong values entered. To my knowledge, thunderclient won't provide any errors, so the only thing you will see is the access token not populating in the box. I switched over to postman (make sure you used the postman callback URL provided), and with the postman console open, I was able to see the specific errors logged. My problem was that even though I hit generate token and the web browser showed me the success page, no access token was populated. Postman told me that that an invalid client secret was provided, and I ended up using the secret ID instead of the secret value.
Microsoft.AspNetCore.Routing: An error occurred while creating the route with name 'function' and template 'api//{*route}'. Microsoft.AspNetCore.Routing: The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. (Parameter 'routeTemplate'). Microsoft.AspNetCore.Routing: The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. I am getting this error what should be done??
@@yashvardhan7880 you can reach out to support or search on stack overflow. I’ve seen this error before but I can’t remember how I went about fixing it. You can hit the Azure Functions team on Twitter @azurefunctions - they’re usually very good at getting back to you
you and the 425 crew put out some really awesome videos. Much appreciated!
Thanks Brett. I will be getting back to creating content once we settle into the new house and my office is set up
could you please reveal the VS code theme you are using in this video?
Absolutely! It’s the Bearded Theme for VS Code marketplace.visualstudio.com/items?itemName=BeardedBear.beardedtheme
you are doing great work please continue with that amazing content
Nice one!, I like the music and the vibe.
Thanks @rabi
Great video Christos! I'm wondering if you have the plan to perform the same using Python v2 programming model. I tried to implement by myself but so far I've failed (not able to enable fastapi with microsoft AD in v2)
Thanks for the kind comments. Unfortunately I’ve moved away from that space and I’m not actively working on this any more. I would highly recommend that you reach out to the Azure AD team to ask for support with Python 2. I hope this helps…
I have followed the instructions exactly and keep getting "Invalid_header: Unable to parse authentication" for the final API call. Any help on this?
You may need to inspect the incoming header as things may have changed since this course was released…
Great video. Thanks a lot. But I have some problems running the code:
1. azure func-tool uses system python and not the vend-python. For this, I needed to install fastapi and other stuff using system pip.
2. In weather.py-file requires_auth-function needs an "f" parameter. Otherwise, it raises type-error.
I am grateful for any support.
Please reach out to the Azure Functions team for tool issues. They are very good at responding quick and helping with problems
@@ChristosMatskas thanks a lot for your quick response. What about the "requires_auth"-function parameter?
What VS code theme do you use?
I use the Bearded Theme: marketplace.visualstudio.com/items?itemName=BeardedBear.beardedtheme
@@ChristosMatskas Thanks
Do you know why ciuld have this error: ModuleNotFoundError: No module named "routers". I don't kno wwhy this can happen because I created the directory as you did and the weatehr.py as you wrote it
have you initialized your "routers" directory as a module? If not, try adding an (empty) __init__.py into it.
When I hit Generate Token, absolutely nothing is happening. Haha. Dead in the water. No browser window open. Going back to the beginning of the video to see if I messed something up, or maybe something has changed? In any case, this is an awesome video for understanding the pieces of this.
If anyone else runs into this problem, it would probably just be the wrong values entered. To my knowledge, thunderclient won't provide any errors, so the only thing you will see is the access token not populating in the box. I switched over to postman (make sure you used the postman callback URL provided), and with the postman console open, I was able to see the specific errors logged.
My problem was that even though I hit generate token and the web browser showed me the success page, no access token was populated. Postman told me that that an invalid client secret was provided, and I ended up using the secret ID instead of the secret value.
were you able to resolve this? i got the same isse
ok nvm. it works now.. its a matter of just setting the right parameters
Nice video, I'm not too familiar with Azures services so it was rather insightful
I need to give a thumbs up for the *wink wink*
Microsoft.AspNetCore.Routing: An error occurred while creating the route with name 'function' and template 'api//{*route}'. Microsoft.AspNetCore.Routing: The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. (Parameter 'routeTemplate'). Microsoft.AspNetCore.Routing: The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.
I am getting this error what should be done??
Did you follow my steps exactly or did you change the code in the Azure Function?
@@ChristosMatskas well i modified it for me
I just wanted to know if there is something that can be done to fix it
@@yashvardhan7880 you can reach out to support or search on stack overflow. I’ve seen this error before but I can’t remember how I went about fixing it. You can hit the Azure Functions team on Twitter @azurefunctions - they’re usually very good at getting back to you
@@ChristosMatskas ok thanks for the help
Definitely not for beginners, you have missed multiple steps and basic introductions.
There is a whole course that goes through all the basics you need. This video assumes that you have a good understanding of authentication