skip to Main Content

running powershell command via ARM template throws "The term 'Connect-AzureAD' is not recognized as a name of a cmdlet" error

I am trying to execute the following powershell script via Azure ARM template (snippet below), Install-Module -Name AzureAD -force Import-Module -Name AzureAD -UseWindowsPowerShell -RequiredVersion 2.0.2.89 -force $SecurePassword = ConvertTo-SecureString $password -AsPlainText -Force $credentials = New-Object System.Management.Automation.PSCredential($username, $SecurePassword) Connect-AzureAD -Credential $credentials…

VIEW QUESTION

Azure – Repository 'UpdateSiteSourceControl' operation failed with Microsoft.Web.Hosting.SourceControls.OAuthException: GitHub Bad credentials

I'm having this error when trying to deploy an Azure Web App using Github repo. { "status": "Failed", "error": { "code": "BadRequest", "message": "<Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>Repository 'UpdateSiteSourceControl' operation failed with Microsoft.Web.Hosting.SourceControls.OAuthException: GitHub GetSecretsPublicKey: Bad credentials n at Microsoft.Web.Hosting.SourceControls.GitHubProxy.&lt ... I used…

VIEW QUESTION
Back To Top
Search