Set-AzAnalysisServicesServer Invalid backup blob container 'The remote server returned an error: (409) Conflict.'

Kez Halls 11 Reputation points
2022-03-30T03:49:37.487+00:00

I have copied some code I found to help me workaround getting automate accounts with Analysis services and runbooks
Code can be found here

I have a private storage resource with a container and I get the below error. All it is doing is resetting the backup container to what it already was and adding the new ip range. If I try and totally remove the parameter for the "–BackupBlobContainerUri" it fails

Line |
130 | throw $_.Exception
| ~~~~~~~~~~~~~~~~~~
| Invalid backup blob container 'The remote server returned an error: (409) Conflict.'. Azure blob storage documentation can be found here: https://go.microsoft.com/fwlink/?linkid=2106906

Here is the specific code block
$AServiceServer | Set-AzAnalysisServicesServer –FirewallConfig $conf
–BackupBlobContainerUri $AServiceServer.BackupBlobContainerUri `
–Sku $AServiceServer.Sku.Name.TrimEnd()

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
444 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,635 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kez Halls 11 Reputation points
    2022-06-27T20:52:46.987+00:00

    Not using that syntax. but if you don't pipe the analysis server object through it works
    instead of

    $AServiceServer | Set-AzAnalysisServicesServer `  
                     -FirewallConfig $conf `  
                     -Sku $AServiceServer.Sku.Name.TrimEnd() `  
                     -DisableBackup  
    

    use

    Set-AzAnalysisServicesServer `  
                     -Name $resourceName   
                     -FirewallConfig $conf `  
                     -Sku $AServiceServer.Sku.Name.TrimEnd() `  
                     -DisableBackup  
    
    1 person found this answer helpful.
    0 comments No comments