Breaking changes in the cmdlet Add-AzAnalysisServicesAccount

AzureLearnChstr 26 Reputation points
2021-02-16T21:54:09.973+00:00

I have an Azure Automation Account Powershell Runbook to start or pause an Azure Analysis on a schedule (for example pause from 12:00 AM to 7:00 AM).

I use the following commands for getting Creds and Rollout env:
$ApplicationCredential = Get-Credential
Add-AzAnalysisServicesAccount -RolloutEnvironment 'aspaaseastus2.asazure.windows.net' -ServicePrincipal -Credential $ApplicationCredential -TenantId "xxxx-xxxx-xxxx-xxxx"

Recently I have been getting the following error when the runbook is executed: Breaking changes in the cmdlet Add-AzAnalysisServicesAccount- The cmdlet is being deprecated. There will be no replacement for it. Note :The change is expected to take effect from the version : '2.0.0'

I have not been able to find an alternative command to do the same function so that my Runbook can continue working to authenticate to the Analysys service and Pause or Resume it as needed. Please help.

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
453 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.