Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

mslearn sandbox script 5-use-translator fails. curl: (6) Could not resolve host: cognitiveserviceshowcase.blob.core.windows.net #29323

Open mpopejoy-dxc opened 4 months ago

mpopejoy-dxc commented 4 months ago

Describe the bug

The command that the MS Learn page at https://learn.microsoft.com/en-us/training/modules/intro-to-translator/5-use-translator instructs to run in the sandbox cli has errors and cannot get the content to be loaded.

The instructed command is; curl -s https://raw.githubusercontent.com/MicrosoftDocs/mslearn-intro-translator-text-to-speech/main/scripts/deploy-in-sandbox.sh | bash

The resulting URL https://translator-text-to-speech-29590.azurewebsites.net/ says: Your web app is running and waiting for your content Your web app is live, but we don’t have your content yet....

5-use-translator_sandbox-cli-output_2024-07-07_0613_cleaned.txt

Related command

sourceZip=https://cognitiveserviceshowcase.blob.core.windows.net/build-artifacts/TranslatorTextToSpeech.zip

Errors

curl: (6) Could not resolve host: cognitiveserviceshowcase.blob.core.windows.net

Issue script & Debug output

(Sorry, I can't see how to do this. I tried "--debug" on a couple of places, but it either seemed to be ignored or received "command not found".)

Expected behavior

I expected whatever the exercise was intended to do, presumably with the content that it's unable to access.

Environment Summary

azure-cli 2.61.0

core 2.61.0 telemetry 1.1.0

Extensions: ai-examples 0.2.5 ml 2.26.1 ssh 2.0.3

Dependencies: msal 1.28.0 azure-mgmt-resource 23.1.1

Python location '/usr/bin/python3.9' Extensions directory '/home/michelle_popejoy/.azure/cliextensions' Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'

Python (Linux) 3.9.19 (main, Mar 28 2024, 18:56:59) [GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

Please also note the comment: This command has been deprecated and will be removed in a future release. Use 'az webapp deploy' instead.

yonzhan commented 4 months ago

Thank you for opening this issue, we will look into it.

microsoft-github-policy-service[bot] commented 4 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.