Runbook Not Working in Account Automation


For a week now, the runbook that I had programmed in the automation account has stopped working. I created another automation account to check if the problem was with the automation account itself, but the problem persists. Can anyone help me?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,113 questions
{count} votes

2 answers

Sort by: Most helpful
  1. tbgangav-MSFT 10,376 Reputation points

    Hi @Manuel Alfonso Naranjo Higuera (HOGAR SÍ) ,

    Please follow the steps mentioned in the link from my earlier comment i.e., this document.

    If you have already taken care of creating managed identity, the new script could be something like shown below.

        "Logging in to Azure..."
        Connect-AzAccount -Identity
    catch {
        Write-Error -Message $_.Exception
        throw $_.Exception
    Resume-AzPowerBIEmbeddedCapacity -Name Service Name

    This sample script is also generated from the same document that I have referred earlier. Also, note that I have replaced Resume-AzureRmPowerBIEmbeddedCapacity cmdlet to Resume-AzPowerBIEmbeddedCapacity as AzureRm is not recommended to use. So, before you use Resume-AzPowerBIEmbeddedCapacity cmdlet, please ensure that the cmdlet related module (Az.PowerBIEmbedded) is imported in your Azure Automation account. For more information with regards to it, please refer this document.

    0 comments No comments

  2. 2024-04-05T19:16:02.6+00:00


    I need help to be able to adapt the code to the new requirements of Azure so that the automation works correctly again.

    Could you help me with that?

    I look forward to your reply

    0 comments No comments