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

No resource found with serverName "Server", serverType Microsoft.AnalysisServices/servers in subscription "Subscription Name" Specify the correct serverName/serverType and try again. #96

Closed dyogesh95 closed 2 years ago

dyogesh95 commented 2 years ago

Hello,

I am trying to deploy tabular model using this task. There are no issues till Jan 2022 but somewhere in middle it says "No resource found with serverName "Server", serverType Microsoft.AnalysisServices/servers in subscription "Subscription Name" Specify the correct serverName/serverType and try again."

All the connections and properties looks good like

  1. A Service connection is created to the resource group using SPN and the connection is successful
  2. The SPN has contributor access on resource group
  3. The App created is added as an admin in analysis service and
  4. I am able to connect to the same the server from my machine Am I missing something ?
liprec commented 2 years ago

The things I can image are that the Azure Analysis Service is not in the resource group provided, the SPN doesn't have contributor rights at the Azure Analysis Service level, or that you made a typo. Make sure that the AAS is in the correct resource group and subscription. The current version is using this hierarchy to interact with the firewall and if something is misconfigured, the task will fail with the above error.

nixuwixu commented 2 years ago

I have the same issue did you find any solution @dyogesh95 ?

liprec commented 2 years ago

@nixuwixu, did you check if the given resource group contains the Azure Analysis Service? And that the SPN have minimal contributor rights to the Azure Analysis Service?

nixuwixu commented 2 years ago

@liprec It works now, I had to create a new ServiceProvider on the subscription that had the AS, somehow the previous version ( 1.3 )worked with a ServiceProvider we had on a RnD subscription that did not have the AS.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.