Closed KiranKumarGowda closed 9 months ago
Hi @KiranKumarGowda , It seems you're using another Azure Action, which is out of the scope of Azure Login Action. Could you raise this issue in https://github.com/Azure/arm-deploy ?
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
Okay i will raise
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_HOSTENVIRONMENT: 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"
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
Hi @YanaXu , Could you help me.