-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImpersonateUser property, not ImpersonateUserSpecified #55
Comments
Hi, -ImpersonateUser:$dataSource.ImpersonateUser is passed in the call to that cmdlet. That dataSource object is fetched by the cmdlet that parses the xml file. Can you check if GetXmlFolderItems returns you the object that has the ImpersonateUser property specified? |
Can you share an example of your config file so that I can test it? |
Hi, I share with you a complete project with a "_Tools" folder containing the ConfigFile. As you say that DataSource is fully build by deployement, the original one don't contains this Impersonate. |
It's a JSON file, not XML. |
I haven't had time to verify, but I gave a look and I suspect the problem is in the fact you are passing in the value as a string:
can you try passing in a boolean?
Let me know. |
Same goes for WindowsCredentials too. |
Hi, I just try with boolean, instead of string, and I have the same result. |
I'll test it this evening and make a fix if I find the reason why this is not working as expected. |
Thanks a lot for your tests. |
I went through the code and made sure that the configuration is picked up correctly, which it is. However, in order for it to be picked up correctly both
do need to be specified as Boolean and not strings. In case of strings, you'll always get True as a value. I also checked the params passed to return
and all of them are correct. Can you check this link https://powershellposse.com/2016/08/03/create-ssrs-data-source/ and indicate which fileds you do expect to be mapped, then you can validate if the correct properties are set here DeploySsrs/task/ps_modules/ssrs.psm1 Line 37 in 3831e0f
Let me know. |
The issue may be here,
I do set a property ImpersonateUserSpecified instead of maybe the ImpersonateUser but I'm not sure. |
Yes, i think the issue is here. |
I have a new version of the extension, but with a different ID. I can invite you for testing if you agree and provide me with the organization name on which I can share it with. Check here https://dev.azure.com/mummy/Azure%20DevOps%20Extensions/_build?definitionId=44&_a=summary |
I contact you in private with the organization name (through your blog ;) ) |
It has now been shared.
Let me know how it goes, then eventually I can push it in prod.
…On Fri, 4 Sep 2020 at 16:12, Alexandre Chemla ***@***.***> wrote:
I contact you in private (through) your blog ;)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXC456IWMSJSE5QO3YZBETSEDYTTANCNFSM4QQQSHLQ>
.
|
Thanks for this quick update. |
Be aware that the identity (unique id) of the shared extension is different from the production extension. Same thing goes for the task in it. You can imagine why is that necessary. |
Unfortunately I do not have an ssrs instance I can use for tests. Can you
try to mimic the proxy call via ps1?
Can we get in touch and check it together?
…On Fri, 4 Sep 2020, 17:49 Alexandre Chemla, ***@***.***> wrote:
When i try to install the test extension, i get this error.
[image: image]
<https://user-images.githubusercontent.com/29091575/92258078-8e895b80-eed6-11ea-95db-3635b17cf2a3.png>
(same version 3.1.8)
I delete the prod one (no problem), then installed the Sahred one.
After recreated my pipeline (with the test version), the log indicate
v3.1.9 👍
[image: image]
<https://user-images.githubusercontent.com/29091575/92258216-c4c6db00-eed6-11ea-813a-1c710246c158.png>
The DataSources have been deployed, but unfortunately the ImpersonateUser
option is still unchecked.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXC455D2QIPJF4OHQCMMPDSEED77ANCNFSM4QQQSHLQ>
.
|
Thanks for this correction and release. |
Thank you for finding it out and helping with the tests! Cheers |
And btw what you mention is true, however in the config file it is sufficient to set only ImpersonateUser to true. |
Hi,
First of all, thank you very much for this very useful DevOps task.
I am in a case where I deploy a SSAS DataSource for which I need to use Impersonation (no Kerberos).
![image](https://user-images.githubusercontent.com/29091575/91724804-21a45780-eb9e-11ea-8064-2dba6f1acb5f.png)
So I configured the JSON Configuration File with the following properties, but I have the impression that the "ImpersonateUser" is not taken into account.
![image](https://user-images.githubusercontent.com/29091575/91724958-4ef10580-eb9e-11ea-805f-0a1684abc2f7.png)
By checking the PowerShell code of your task, I have the impression that there is a small error at this level in function New-DataSource()
![image](https://user-images.githubusercontent.com/29091575/91725064-78aa2c80-eb9e-11ea-89d4-6660325c4810.png)
Is it a problem of use on my part?
Thank you for the feedback
The text was updated successfully, but these errors were encountered: