Skip to content
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

dp-203-setup-Part01.ps1 is looking for #UserId, but does n to seem to capture it anywhere. #47

Open
MXMorrissey opened this issue Jul 11, 2022 · 0 comments

Comments

@MXMorrissey
Copy link

dp-203-setup-Part01.ps1 throws the error below:

Performing post-deployment configuration...
Granting [email protected] admin permissions...
Assign-SynapseRole : Cannot bind argument to parameter 'PrincipalId' because it is an empty string.
At C:\dp-203\data-engineering-ilt-deployment\Allfiles\00\artifacts\environment-setup\automation\dp-20
3-setup-Part01.ps1:198 char:110

  • ... d "6e4bf58a-b8e1-4cc3-bbf9-d73143322b78" -PrincipalId $userId # Work ...
  •                                                       ~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Assign-SynapseRole], ParameterBindingValidationExcep
      tion
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Assign-SynapseRo
      le

Assign-SynapseRole : Cannot bind argument to parameter 'PrincipalId' because it is an empty string.
At C:\dp-203\data-engineering-ilt-deployment\Allfiles\00\artifacts\environment-setup\automation\dp-20
3-setup-Part01.ps1:199 char:110

  • ... d "7af0c69a-a548-47d6-aea3-d00e69bd83aa" -PrincipalId $userId # SQL ...
  •                                                       ~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Assign-SynapseRole], ParameterBindingValidationExcep
      tion
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Assign-SynapseRo
      le

Assign-SynapseRole : Cannot bind argument to parameter 'PrincipalId' because it is an empty string.
At C:\dp-203\data-engineering-ilt-deployment\Allfiles\00\artifacts\environment-setup\automation\dp-20
3-setup-Part01.ps1:200 char:110

  • ... d "c3a6d2f1-a26f-4810-9b0f-591308d5cbf1" -PrincipalId $userId # Apac ...
  •                                                       ~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Assign-SynapseRole], ParameterBindingValidationExcep
      tion
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Assign-SynapseRo
      Le

The scripts is looking for #UserId, but does n to seem to capture it anywhere.

Add the current userto Admin roles

Write-Host "Granting $userName admin permissions..."
Assign-SynapseRole -WorkspaceName $workspaceName -RoleId "6e4bf58a-b8e1-4cc3-bbf9-d73143322b78" -PrincipalId $userId # Workspace Admin
Assign-SynapseRole -WorkspaceName $workspaceName -RoleId "7af0c69a-a548-47d6-aea3-d00e69bd83aa" -PrincipalId $userId # SQL Admin
Assign-SynapseRole -WorkspaceName $workspaceName -RoleId "c3a6d2f1-a26f-4810-9b0f-591308d5cbf1" -PrincipalId $userId # Apache Spark Admin

What am I missing?

Thanks,

Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant