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

Webapp:“az webapp create-remote-connection” pauses powershell script #14585

Open
stevenjh opened this issue Jul 29, 2020 · 2 comments
Open
Assignees
Labels
app-service-networking customer-reported Issues that are reported by GitHub users external to the Azure organization. linked linked to an azure devops ticket needs-team-attention This issue needs attention from Azure service team or SDK team Service Attention This issue is responsible by Azure service team. Web Apps az webapp

Comments

@stevenjh
Copy link

Describe the bug
When the following line runs in my powershell script, execution of the rest of the script stops
az webapp create-remote-connection --subscription 00000000-9dfs-4fdsxexxxx-324jklsdf4308320324 --resource-group my-resource-group -n my-app-name -p 12345

I'm calling it from Windows Task Scheduler, a powershell dialog pops up indicating progress, and then pauses the script with the feedback below and offering the interactive options to close

Opening tunnel on port: 12345
SSH is available { username: user, password: password }
Ctrl + C to close

Calling the following function to test if the script thinks it should be interactive, it is returning true, indicating it knows it is not interactive

function Test-IsNonInteractiveShell {
    if ([Environment]::UserInteractive) {
        foreach ($arg in [Environment]::GetCommandLineArgs()) {
            # Test each Arg for match of abbreviated '-NonInteractive' command.
            if ($arg -like '-NonI*') {
                return $true
            }
        }
    }
    return $false
}

To Reproduce

Expected behavior
That the ssh tunnel will be created and the rest of the script will be executed.

Environment summary
Windows 10

Additional context

@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 labels Jul 29, 2020
@arrownj arrownj added Service Attention This issue is responsible by Azure service team. Web Apps az webapp labels Jul 30, 2020
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 30, 2020
@ghost
Copy link

ghost commented Jul 30, 2020

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

@arrownj arrownj added needs-triage This is a new issue that needs to be triaged to the appropriate team. and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 30, 2020
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 30, 2020
@arrownj
Copy link
Contributor

arrownj commented Jul 30, 2020

Hi @stevenjh , thanks for reporting, we will look at it.

@ThejaChoudary ThejaChoudary changed the title “az webapp create-remote-connection” pauses powershell script Webapp:“az webapp create-remote-connection” pauses powershell script Aug 3, 2020
@btardif btardif added this to to-do in Compute Features via automation Aug 5, 2020
@azure-sdk azure-sdk added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Sep 24, 2020
@btardif btardif added this to the S181 milestone Dec 3, 2020
@btardif btardif moved this from to-do to Tirage in Compute Features Dec 3, 2020
@azure-sdk azure-sdk added the needs-team-attention This issue needs attention from Azure service team or SDK team label Jan 5, 2021
@yonzhan yonzhan removed this from the S181 milestone Jan 16, 2021
@btardif btardif assigned seligj95 and unassigned btardif Jun 25, 2021
@seligj95 seligj95 added the linked linked to an azure devops ticket label Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-service-networking customer-reported Issues that are reported by GitHub users external to the Azure organization. linked linked to an azure devops ticket needs-team-attention This issue needs attention from Azure service team or SDK team Service Attention This issue is responsible by Azure service team. Web Apps az webapp
Projects
No open projects
Compute Features
  
Triage
Development

No branches or pull requests

6 participants