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

Bot Cloning in Azure

I am trying to duplicate a bot in azure. I attempted to do this via a template, but that seemed to only duplicate the bot resource and not any of the credentials and api scopes associated with it, which does…

VIEW QUESTION

Azure bicep dependsOn for existing resource

From my "main" bicep module, I would like to reference an existing function that is created by a module called from the same "main" bicep. So used the following code: resource functionApp 'Microsoft.Web/sites@2021-02-01' existing = { name: functionAppName scope: resourceGroup(subscriptionId,…

VIEW QUESTION

Ubuntu – The template parameter is not valid. The parameter value must be null

I'm a beginner on Azure DevOps and I'm trying to create a CI pipeline for an simple ARM Template. So I have this file (test_template.json): { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "storageAccounts_dqed01dls_name": { "defaultValue": "dqed01als", "type": "String" }, "virtualNetworks_dpm01_d_vnet_externalid":…

VIEW QUESTION
Back To Top
Search