Azure / Azure/azure-cli

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

Open
#29,323 2 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign bug Cognitive Services customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 10h
Merged PRs (30d)
64

Description

### 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](https://github.com/user-attachments/files/16119367/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.

Contributor guide

Open the contributing guide

Research direction

Start with the MS Learn module and scripts/deploy-in-sandbox.sh, then inspect the sourceZip URL for TranslatorTextToSpeech.zip and the reported curl DNS failure. Reproduce the sandbox command and verify that the deployed web app receives its content; completion should also account for the noted deprecation of the deployment command.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, bash
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.