Giter Club home page Giter Club logo

slaps's Issues

Device rename breaks this

If you rename a device after deployment, the rename won't reflect in the key vault which could make things a bit hairy.

Response status code does not indicate success: 405 (Method Not Allowed).Exception

Hello,

Im getting alot of errors when Testing the function and create the Test Key.
Its not able to parse the key into keyvault for some reason.
The key will be created and shown in the end.

Errors shown like.

Error] ERROR: Response status code does not indicate success: 405 (Method Not Allowed).Exception :Type : Microsoft.PowerShell.Commands.HttpResponseExceptionResponse : StatusCode: 405, ReasonPhrase: 'Method Not Allowed', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:{Cache-Control: no-cachePragma: no-cachex-ms-keyvault-region: westeuropex-ms-request-id: a98c4a94-d199-4df9-b708-577cb3d94a5dx-ms-keyvault-service-version: 1.1.60.0x-ms-keyvault-network-info: conn_type=Ipv4;addr=52.166.217.1;act_addr_fam=InterNetwork;X-AspNet-Version: 4.0.30319X-Powered-By: ASP.NETStrict-Transport-Security: max-age=31536000;includeSubDomainsX-Content-Type-Options: nosniffDate: Thu, 24 Sep 2020 19:38:04 GMTContent-Length: 70Content-Type: application/json; charset=utf-8Expires: -1}TargetSite :Name : ThrowTerminatingErrorDeclaringType : System.Management.Automation.MshCommandRuntime, System.Management.Automation, Version=7.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35MemberType : MethodModule : System.Management.Automation.dllStackTrace :at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)Message : Response status code does not indicate success: 405 (Method Not Allowed).Source : System.Management.AutomationHResult : -2146233088TargetObject : Method: PUT, RequestUri: 'https://RemovedKeyVaultName.vault.azure.net/secrets//?api-version=7.0', Version: 1.1, Content: System.Net.Http.ByteArrayContent, Headers:{Authorization: Bearer

Would you mind helping me on this?

Updated authToken URI for .NET Core

Updated the authorization token request for the .NET Core being used by Function Apps and split out the API versions, as some requests use the date format and others require a version.

Use SID for administrators group

Non-English Windows renames "Administrators" group, so SID should be used instead.

New-LocalAdmin.ps1
Add-LocalGroupMember -SID 'S-1-5-32-544' -Member $userName

The Function app may be missing a module containing the 'Disable-AzContextAutosave' command definition.

Warning] The Function app may be missing a module containing the 'Disable-AzContextAutosave' command definition.

If this command belongs to a module available on the PowerShell Gallery, add a reference to this module to requirements.psd1.

Make sure this module is compatible with PowerShell 7.

For more details, see https://aka.ms/functions-powershell-managed-dependency.

If the module is installed but you are still getting this error, try to import the module explicitly by invoking Import-Module just before the command that produces the error: this will not fix the issue but will expose the root cause.

2021-11-04T02:32:50.190 [Error] ERROR: The term 'Disable-AzContextAutosave' is not recognized as the name of a cmdlet, function, script file, or operable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.