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

Error while registering new application in AD using Azure Powershell. #16230

Closed
venkateshtarra opened this issue Oct 26, 2021 · 3 comments
Closed
Labels
AAD AzAd cmdlets in Az.Resources customer-reported customer-response-expected question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@venkateshtarra
Copy link

Hi Team,

I am trying to create FHIR server in Azure and registering API in AD using below command but it is giving error as highlighted.
I have upgraded AZ module version to 6.5 but still getting this error. Can we solve this issue without creating subdomain under registered custom domain name as mentioned in this link.

#16097 (comment)

New-AzureADApplication -DisplayName $FhirServiceAudience -IdentifierUris $FhirServiceAudience -AppRoles $desiredAppRoles
New-AzureAdServicePrincipal -AppId $apiAppReg.AppId | Out-Null

Error:-

"Error occurred while executing NewApplication Code: Request_BadRequest Message: Values of identifierUris property must use a verified domain of the
| organization or its subdomain: 'https://fhirpaas21.azurehealthcareapis.com' RequestId: 0ab2b655-a4cb-47bf-83b1-4a25a891eacb DateTimeStamp: Tue, 26 Oct
| 2021 12:44:59 GMT Details: PropertyName - identifierUris, PropertyErrorCode - HostNameNotOnVerifiedDomain, HostName -
| https://fhirpaas21.azurehealthcareapis.com HttpStatusCode: BadRequest HttpStatusDescription: Bad Request HttpResponseStatus: Completed"

Thanks in advance
Venkatesh Tarra.

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported labels Oct 26, 2021
@dcaro
Copy link
Contributor

dcaro commented Oct 26, 2021

@venkateshtarra New-AzureADApplication and New-AzureAdServicePrincipal belong to the AzureAD module, not the Azure PowerShell module.
For AzureAD related issues, please open an issue here https://github.com/Azure/azure-docs-powershell-azuread/issues

Try your code using the Az or just Az.Resources module with the New-AzAdApplication and New-AzAdServicePrincipal.

@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Oct 26, 2021
@dcaro dcaro added AAD AzAd cmdlets in Az.Resources customer-reported labels Oct 26, 2021
@venkateshtarra
Copy link
Author

@dcaro Thanks for redirecting me to correct group. I have created a new one and closing this issue.

@isinghrana
Copy link

@venkateshtarra Can you please share the link to the new issue you created?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AAD AzAd cmdlets in Az.Resources customer-reported customer-response-expected question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants