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

can't use variable for [Analysis Services URL] #79

Closed mdc17 closed 2 years ago

mdc17 commented 2 years ago

By using a variable to determinant [Analysis Services URL] we get an error

image

image

It's only working by palace the server URL as text

liprec commented 2 years ago

Can you share the debug log (variable: System.Debug set to true) to provide me some more details?

mdc17 commented 2 years ago

Server URL is asazure://centralus.asazure.windows.net/asMMMMtest001

Please check the log

tasklog_6.log

liprec commented 2 years ago

Looking at the logging it seems that the SPN of the Service Connection doesn't have enough rights to 'see' the AAS. In the new version the SPN should at least have contributor rights to add/remove the firewall.

mdc17 commented 2 years ago

Are trim the variable value? I realized that there was a space at the end of the URL. Can you check this?

liprec commented 2 years ago

The space indeed looks like the issue as the logs are showing the extra space at the end. And no the tasks assumes that you have provided the correct server name, but a trim left/right will add some extra usability.

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.