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

Deploying using a Service principal #5

Closed simzei closed 5 years ago

simzei commented 6 years ago

I would like to run the deployment using a service principle. I've tried different ways of passing the credential information, using AppId, ObjectId, and the app:AppId@TenantId. All of these options lead to an error "Error during deploying the model (Exception has been thrown by the target of an invocation.)".

I've looked in the code and I see that you do not use "Login-AzureAsAccount". Using this commandlet is the only way that I manage to get these database level commandlets working with my service-principal. Are you considering adding support for service principals / apps?

liprec commented 6 years ago

Good suggestion and I will add it to the extension.

niya90 commented 6 years ago

Hi , Is the SPN login is added to the code?

liprec commented 6 years ago

It is not yet added, but I will add it anytime soon, but no ETA yet.

isehuet commented 6 years ago

Just posted an issue which is most likely related to the above enhancement. Would really like this enhancement, we are running the CI/CD over VSTS using SPN as well and we get the same error, although we give an Analysis Services Admin and Password to the task details. I was assuming that it was using these details provided.

liprec commented 5 years ago

I just released a minor version (v1.2) with Service Principal support.