{"id":377,"date":"2024-05-15T23:11:24","date_gmt":"2024-05-15T21:11:24","guid":{"rendered":"https:\/\/archicode.be\/?p=377"},"modified":"2024-05-15T23:11:24","modified_gmt":"2024-05-15T21:11:24","slug":"issue-when-debugging-azure-function-locally","status":"publish","type":"post","link":"https:\/\/archicode.be\/index.php\/2024\/05\/15\/issue-when-debugging-azure-function-locally\/","title":{"rendered":"Issue when debugging Azure Function locally"},"content":{"rendered":"\n<p>If you&#8217;re developing Azure Functions, it may happen that you encounter this error : <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Failed to decrypt settings. Encrypted settings only be edited through 'func settings add'.<\/code><\/pre>\n\n\n\n<p>That often means that there&#8217;s an issue with your local.settings.json file.  There are different ways that people might use to circumvent this error but I found for me that doing the following works everytime I have this error.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Windows Terminal or any command line tool<\/li>\n\n\n\n<li>Go to your Azure function project path<\/li>\n\n\n\n<li>Execute the following command &#8220;func settings encrypt&#8221;<\/li>\n\n\n\n<li>Then execute the following &#8220;func settings decrypt&#8221;.<\/li>\n<\/ol>\n\n\n\n<p>That should do the trick.  Let me know if that worked for you.<\/p>\n\n\n\n<p><em>Happy fixing<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re developing Azure Functions, it may happen that you encounter this error : That often means that there&#8217;s an issue with your local.settings.json file. There are different ways that people might use to circumvent this error but I found for me that doing the following works everytime I have this error. That should do&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2,44],"tags":[],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-net","category-fixes-2"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":159,"url":"https:\/\/archicode.be\/index.php\/2020\/06\/24\/feature-flags-using-azure-feature\/","url_meta":{"origin":377,"position":0},"title":"Feature flags using Azure feature","author":"Hakim","date":"June 24, 2020","format":false,"excerpt":"Feature flags are very useful when you develop an application and while you don't want users to use the feature that isn't really ready, you don't want to stay on a side branch for too long as merging and rebasing from the main branch can become quite the chore. Enter\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/archicode.be\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":137,"url":"https:\/\/archicode.be\/index.php\/2020\/06\/09\/publish-a-xamarin-app-to-app-center-with-azure-pipeline\/","url_meta":{"origin":377,"position":1},"title":"Publish a Xamarin app to App Center with Azure Pipeline.","author":"Hakim","date":"June 9, 2020","format":false,"excerpt":"I've been working on an android app with Xamarin lately and I wanted to deploy it to App Center automatically so I can install it on my mobile to test it as I hate manual deployment. I knew that App Center had a connector to azure devops repositories so you\u2026","rel":"","context":"In &quot;Uncategorised&quot;","block_context":{"text":"Uncategorised","link":"https:\/\/archicode.be\/index.php\/category\/uncategorised\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2020\/06\/image-2-1024x1018.png","width":350,"height":200},"classes":[]},{"id":20,"url":"https:\/\/archicode.be\/index.php\/2019\/02\/16\/esp8266-the-iot-prototyping-graal\/","url_meta":{"origin":377,"position":2},"title":"Esp8266 &#8211; the IOT prototyping Graal","author":"Hakim","date":"February 16, 2019","format":false,"excerpt":"1. A Esp-01 (the most basic of all the Esp8266) I've been working for some time now with IOT and I've worked extensively with the Esp8266 chip just because I'm testing a lot of stuff and don't want to spend a lot of money in it. You can get these\u2026","rel":"","context":"In &quot;IoT&quot;","block_context":{"text":"IoT","link":"https:\/\/archicode.be\/index.php\/category\/iot\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":380,"url":"https:\/\/archicode.be\/index.php\/2025\/04\/17\/how-to-deactivate-and-reactivate-a-plugin-in-microsoft-dynamics-365-resolving-the-projectoperations_anchor-packageimportfailed-error\/","url_meta":{"origin":377,"position":3},"title":"How to Deactivate and Reactivate a Plugin in Microsoft Dynamics 365: Resolving the &#8220;ProjectOperations_Anchor PackageImportFailed&#8221; Error","author":"Hakim","date":"April 17, 2025","format":false,"excerpt":"If you are working with Microsoft Dynamics 365 and encounter the error \"ProjectOperations_Anchor PackageImportFailed Import Failed status encountered\" while trying to install or update Project Operations, you are not alone. This error can be frustrating, but there are steps you can take to resolve it. One potential solution involves deactivating\u2026","rel":"","context":"In \"dynamics\"","block_context":{"text":"dynamics","link":"https:\/\/archicode.be\/index.php\/tag\/dynamics\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":324,"url":"https:\/\/archicode.be\/index.php\/2023\/11\/07\/how-to-use-feature-flags-in-blazor\/","url_meta":{"origin":377,"position":4},"title":"How to use Feature Flags in Blazor","author":"Hakim","date":"November 7, 2023","format":false,"excerpt":"Feature flags are a way of controlling the availability and behavior of features in your application without changing the code. They can help you with testing, experimentation, and gradual rollout of new functionality. Blazor is a framework for building interactive web UIs using C# and .NET. In this blog post,\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/archicode.be\/wp-content\/uploads\/2023\/11\/4b6f8d86-a588-4313-8cc9-4c41a90aaae5.jpeg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/archicode.be\/wp-content\/uploads\/2023\/11\/4b6f8d86-a588-4313-8cc9-4c41a90aaae5.jpeg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/archicode.be\/wp-content\/uploads\/2023\/11\/4b6f8d86-a588-4313-8cc9-4c41a90aaae5.jpeg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/archicode.be\/wp-content\/uploads\/2023\/11\/4b6f8d86-a588-4313-8cc9-4c41a90aaae5.jpeg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":252,"url":"https:\/\/archicode.be\/index.php\/2020\/08\/03\/safely-store-secrets-during-development\/","url_meta":{"origin":377,"position":5},"title":"Safely store secrets during development","author":"Hakim","date":"August 3, 2020","format":false,"excerpt":"When developing an application, we sometimes need to call an api or connect to a database and for this, we use passwords or keys to connect. If we put them in the appsettings, there's always the danger of forgetting about them and commit them to source control which can then\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/archicode.be\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":1,"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"predecessor-version":[{"id":378,"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/posts\/377\/revisions\/378"}],"wp:attachment":[{"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archicode.be\/index.php\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}