You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritise this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritise the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and AzureAD Provider) Version
Terraform version: latest as of now (should be irrelevant for this issue)
Provider version: azuread v3.0.2
Affected Resource(s)
azuread_service_principal
Terraform Configuration Files
Irrelevant
Debug Output
Panic Output
Expected Behavior
The docs should have stated that one must use /servicePrincipals/servicePrincipalId instead of saying use servicePrincipalId as identifier for the imported resurce.
Actual Behavior
When running the import command as stated in the docs (terraform import azuread_service_principal.example 00000000-0000-0000-0000-000000000000), one gets this:
Error: parsing "e18f75b7-<redacted>73e": parsing the ServicePrincipal ID: the number of segments didn't match
Expected a ServicePrincipal ID that matched (containing 2 segments):
> /servicePrincipals/servicePrincipalId
However this value was provided (which was parsed into 0 segments):
> e18f75b7-<redacted>73e
The following Segments are expected:
* Segment 0 - this should be the literal value "servicePrincipals"
* Segment 1 - this should be the user specified value for this servicePrincipalId [for example "servicePrincipalId"]
The following Segments were parsed:
* Segment 0 - not found
* Segment 1 - not found
Steps to Reproduce
Run an import as stated in the docs.
Important Factoids
None
References
None
The text was updated successfully, but these errors were encountered:
The issue will automatically be fixed with the new release. 🙂 The GitHub Docs are up to date, but the terraform registry links to the last release and it was fixed in #1524 after the release of 3.0.2.
Community Note
Terraform (and AzureAD Provider) Version
Terraform version: latest as of now (should be irrelevant for this issue)
Provider version: azuread v3.0.2
Affected Resource(s)
azuread_service_principal
Terraform Configuration Files
Irrelevant
Debug Output
Panic Output
Expected Behavior
The docs should have stated that one must use
/servicePrincipals/servicePrincipalId
instead of saying useservicePrincipalId
as identifier for the imported resurce.Actual Behavior
When running the import command as stated in the docs (
terraform import azuread_service_principal.example 00000000-0000-0000-0000-000000000000
), one gets this:Steps to Reproduce
Run an import as stated in the docs.
Important Factoids
None
References
None
The text was updated successfully, but these errors were encountered: