Closed yeseo1018 closed 2 years ago
Thanks for reporting. Could you just execute cmdlet Get-AzureRmWebApp -Name [EDIT]
again after you turn on debug log? There is request and response in log. Please share it to us.
Another possibility is due to API version. Could you try Get-AzWebApp
using the latest Az.Websites?
Thank you for your feedback. This has been routed to the support team for assistance.
DEBUG: AzureQoSEvent: CommandName - Get-AzureRmWebApp; IsSuccess - True; Duration - 00:00:02.5039407; Exception - ; DEBUG: Finish sending metric. DEBUG: 9:53:36 AM - GetAzureWebAppCmdlet end processing. DEBUG: 9:53:36 AM - GetAzureWebAppCmdlet end processing.
This is all I could share as tonnes of other app removed the previous log.
Get-AzWebApp this worked
Thanks for sharing. It should relate to API version. How did you create the WebApp?
I have created through pipeline just like other apps
Here is the task
task: AzureResourceGroupDeployment@2
displayName: Deploy App Service
condition: and(eq(variables['doWebApp'], '1'), eq(variables['parameterFileExists'], true))
inputs:
azureSubscription: $(Subscription)
resourceGroupName: $(ResourceGroupName)
location: $(Location)
csmFile: ARMTemplates/AppService/fa-template.json
csmParametersFile: ARMTemplates/AppService/[EDIT]-$(SettingToken)-parameters.json
deploymentName: ARMTemplateDeployment-FunctionApp-[EDIT]
Got it. I believe Webapp is created using the new API but AzureRm module still uses old version. Please consider to upgrade your module to the latest Az. I'm not sure service team plans to make API consistent.
@yeseo1018 Apologies for the late reply. Thanks for reaching out to us and reporting this issue.
Our recommendation is to use Get-AzWebApp PS cmdlet. Because we'll retire AzureRM PowerShell modules on 29 February 2024. Az PowerShell modules now have all the capabilities of AzureRM PowerShell modules and more,
To avoid service interruptions, update your scripts that use AzureRM PowerShell modules to use Az PowerShell modules by 29 February 2024.
Also I see that you are using an older version of AzureRM.Websites. You can also try to update AzureRM.Websites module to the most recent version and check if that helps. Awaiting your reply.
@yeseo1018 I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please let us know if you need any further assistance on this. Awaiting your reply.
Updating to the latest version of AzureRm.Websites still did not worked. Will upgrade to AZ modules as they work fine. Thank you
Description
Newly created function apps are not showing up on the Get-AzureRmWebApp, but when I try Set-AzureRmWebApp result is showing.
Issue script & Debug output
Environment data
Module versions
Error output
No response