Why ProvisioningState is empty

MoTaar 310 Reputation points
2023-11-02T02:09:26.1266667+00:00

I've run this commend to add a front port:

$frontendportHTTPS = New-AzApplicationGatewayFrontendPort `
>>  -Name myfrontendportHTTPS `
>>  -Port 443

and when I tried to call $frontendportHTTPS

I got empty field under ProvisioningState

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,090 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,681 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 47,571 Reputation points Microsoft Employee
    2023-11-02T16:35:21.2133333+00:00

    @MoTaar

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I suggested,

    You informed, your code snippet required you to use "Add-AzApplicationGatewayFrontendPort" and this resolved the issue.

    Cheers,

    Kapil

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.