Apr 05 2022
04:29 PM
- last edited on
Mar 05 2024
01:39 PM
by
TechCommunityAP
Apr 05 2022
04:29 PM
- last edited on
Mar 05 2024
01:39 PM
by
TechCommunityAP
Hi,
I am trying to deploy the arm template using the azure devops and getting the below errors.
2022-04-05T23:26:12.1776465Z ## Validating Inputs 2022-04-05T23:26:12.1904516Z ## Validating Inputs Complete 2022-04-05T23:26:12.1921198Z ## Initializing Azure 2022-04-05T23:26:12.6336103Z Added TLS 1.2 in session. 2022-04-05T23:26:13.9432297Z ##[command]Import-Module -Name C:\Modules\azurerm_6.13.1\AzureRM\6.13.1\AzureRM.psd1 -Global 2022-04-05T23:26:32.7370919Z ##[command]Clear-AzureRmContext -Scope Process 2022-04-05T23:26:34.0422406Z ##[command]Disable-AzureRmContextAutosave -ErrorAction Stop 2022-04-05T23:26:36.3893461Z ##[command]Add-AzureRMAccount -ServicePrincipal -Tenant xxx -Credential System.Management.Automation.PSCredential -Environment AzureCloud @processScope 2022-04-05T23:26:38.4440610Z ##[command] Select-AzureRMSubscription -SubscriptionId xxx -TenantId xxx 2022-04-05T23:26:38.9096942Z ## Initializing Azure Complete 2022-04-05T23:26:38.9129374Z ## Beginning Script Execution 2022-04-05T23:26:39.0519074Z ##[command]& 'D:\a\1\s\Deploy-Aztemplate.ps1' -ArtifactStagingDirectory 'D:\a\1\s\quickstarts\microsoft.sql\sql-logical-server' -Location 'Australia East' -ResourceGroupName 'xxx' 2022-04-05T23:26:39.3831973Z ##[error]The script 'Deploy-Aztemplate.ps1' cannot be run because the following modules that are specified by the "#requires" statements of the script are missing: Az.Resources. 2022-04-05T23:26:39.4790248Z ##[section]Finishing: AzurePowerShell
azure-pipeline.yml
trigger:
- master
pool:
vmImage: windows-latest
steps:
- task: AzurePowerShell@3
inputs:
azureSubscription: 'xxx-xxx-xx'
ScriptType: 'FilePath'
ScriptPath: '$(System.DefaultWorkingDirectory)/./Deploy-Aztemplate.ps1'
ScriptArguments: -ArtifactStagingDirectory '$(System.DefaultWorkingDirectory)\quickstarts\microsoft.sql\sql-logical-server' -Location 'Australia East' -ResourceGroupName 'dco-devtest-labs'
azurePowerShellVersion: 'latestversion'
Apr 05 2022 04:36 PM