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 Deployment Backend with Target = "App Service" #2368

Closed
mrisahoo1 opened this issue Feb 19, 2025 · 2 comments
Closed

Error Deployment Backend with Target = "App Service" #2368

mrisahoo1 opened this issue Feb 19, 2025 · 2 comments

Comments

@mrisahoo1
Copy link

ERROR: error executing step command 'deploy --all': failed deploying service 'backend': validating target resource: resource 'app-backend-sfj6hglufl7ms' with type 'Microsoft.Web/sites' does not match expected resource type 'Microsoft.App/containerApps'

While setting the target deployment as "AppService" I am receiving this error to deploy the backend with the ./app/start.ps1 command.
I want to use Content Understanding and AI Vision and it works better with AppService from what I have inferred.

Also, I cannot with the connect Content Understanding Resource while being in the Intranet.
File "C:\Users\User1\Desktop\DigiLib.venv\Lib\site-packages\aiohttp\connector.py", line 1050, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WKK9OUQ\Desktop\DigiLib.venv\Lib\site-packages\aiohttp\connector.py", line 1341, in _create_direct_connection
raise ClientConnectorDNSError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host cu-sfj6hglufl7ms.cognitiveservices.azure.com:443 ssl:default [getaddrinfo failed]

Please help me out with this.

@pamelafox
Copy link
Collaborator

There are multiple errors in this issue.

For this one:

"ERROR: error executing step command 'deploy --all': failed deploying service 'backend': validating target resource: resource 'app-backend-sfj6hglufl7ms' with type 'Microsoft.Web/sites' does not match expected resource type 'Microsoft.App/containerApps'"

That indicates you did not also modify azure.yaml. Please look at the app service guide again and make sure you've modified azure.yaml accordingly.
By the way, I don't think you need to use App Service for ContentUnderstanding/AIVision reasons, those should work fine with Container Apps as well.

For this one:
"aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host cu-sfj6hglufl7ms.cognitiveservices.azure.com:443 ssl:default [getaddrinfo failed]"

Can you try again? I think there may have been a DNS outage yesterday, and that looks like a DNS error.

@mrisahoo1
Copy link
Author

mrisahoo1 commented Feb 24, 2025

The issue has been resolved.
Thank you @pamelafox

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

2 participants