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.