Azure / Azure/azure-powershell
Error in the "Get publish profile"
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### Description
Run azure/arm-deploy@v1
with:
subscriptionId: a4bd6d8e-cfd8-43c2-a63c-83a8c0ff91f1
template: ./ARMTemplates/LA_Standard_Basic.json
parameters: ./ARMTemplates/LA_Standard_Basic_Param.json
failOnStdErr: true
env:
AZURE_HTTP_USER_AGENT:
AZUREPS_HOST_ENVIRONMENT:
Changing subscription context...
Error: ResourceGroup name must be set.Validating inputs
Module Az latest installed from hostedAgentFolder
Initializing Az Module
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command Test-Path (Join-Path /opt/hostedtoolcache az_)
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command $env:PSModulePath
/home/runner/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7-lts/Modules
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command try ***
$ErrorActionPreference = "Stop"
$WarningPreference = "SilentlyContinue"
$output = @**
$data = Get-Module -Name Az -ListAvailable | Sort-Object Version -Descending | Select-Object -First 1
$output['AzVersion'] = $data.Version.ToString()
$output['Success'] = "true"
catch ***
$output['Error'] = $_.exception.Message
return ConvertTo-Json $output
False
"AzVersion": "11.0.0",
"Success": "true"
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command $env:PSModulePath
/opt/hostedtoolcache:/home/runner/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7-lts/Modules
Initializing Az Module Complete
Running Az PowerShell Script
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command /runner/_work/_temp/55f78cfc-2e34-4a20-a190-5f80419ff698.ps1
Get-AzWebAppPublishingProfile: /runner/_work/_temp/55f78cfc-2e34-4a20-a190-5f80419ff698.ps1:2
Line |
2 | $profile = Get-AzWebAppPublishingProfile `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Operation returned an invalid status code 'NotFound'
Error: Error: The process '/usr/bin/pwsh' failed with exit code 1
Can anyone help me out this.
### Issue script & Debug output
```PowerShell
$profile = Get-AzWebAppPublishingProfile `
-ResourceGroupName ${{github.event.inputs.ResourceGroupName}} `
-Name ${{github.event.inputs.LogicAppName}}
$profile = $profile.Replace("`r", "").Replace("`n", "")
Write-Output "::set-output name=profile::$profile"
```
### Environment data
```PowerShell
PS> Version
```
### Module versions
```PowerShell
ps> Get-Module Az
```
### Error output
```PowerShell
$profile = Get-AzWebAppPublishingProfile `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Operation returned an invalid status code 'NotFound'
Error: Error: The process '/usr/bin/pwsh' failed with exit code 1
```
Contributor guide
Research direction
Start with the PowerShell entry point using Get-AzWebAppPublishingProfile and the workflow inputs ResourceGroupName and LogicAppName. Check the ARMTemplates/LA_Standard_Basic.json deployment context and reproduce the command with the reported Azure PowerShell version. Done means the intended resource is found and the publishing profile command completes without the NotFound error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100