liprec / vsts-release-aas

Repository for my Analysis Service Azure pipelines tasks related to Azure Analysis Service or Power BI Premium
Other
27 stars 28 forks source link

Execute TSML fails since latest update. #55

Closed Richard3004 closed 3 years ago

Richard3004 commented 3 years ago

We can no longer do a release from DevOps when using the Azure Analysis Service TMSL Script.

I get the following: Error during removing firewall rule (You cannot call a method on a null-valued expression.)

Please help?

Starting: executeaastsml

Task : Azure Analysis Service TMSL Script Description : Executes a TMSL Script on an Azure Analysis Service instance Version : 1.3.5 Author : Jan Pieter Posthuma Help : More Information

Import-Module -Name C:\Modules\azurerm_2.1.0\AzureRM\2.1.0\AzureRM.psd1 -Global

[warning]The names of some imported commands from the module 'AzureRM.Websites' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

Clear-AzureRmContext -Scope Process Disable-AzureRmContextAutosave -ErrorAction Stop Add-AzureRMAccount -ServicePrincipal -Tenant * -Credential System.Management.Automation.PSCredential -Environment AzureCloud @processScope Select-AzureRMSubscription -SubscriptionId *** -TenantId ***

[error]Error during removing firewall rule (You cannot call a method on a null-valued expression.)

[error]You cannot call a method on a null-valued expression.

Finishing: executeaastsml