I’m working on setting up an application getaway with a group of backend app services. I am in the final configuration steps of configuring a listener, but first I need to set Application Gateway to support key vault reference certificates. I follow this guide from the official Microsoft documentation: Key Vault Azure Role-Based Access Control Permissions Model
via azure powershell, but i get this series of errors. In the case of getAzApplicationGateway, I have already verified that the name in which my resource is located is correct. As for get-AzApplicationGateweyIdentity and Add-Az-ApplicationGatewaySslCertifacate, I get: Cannot bind argument to parameter ‘ApplicationGateway’ because it is null. I can’t find the cause for this error, am I entering the wrong argument?
2
Answers
Your first command in the posted snippet "Get-AzApplicationGateway" doesn’t find your gateway.
At least in the snipped provided you don’t give -name and -ResourceGroupName as strings, meaning in " ".
Wenn I run your commands with strings where they are required it works just fine
When I ran the below command directly, I got the same error.
First, we need to create an Application Gateway.
Create a Managed Identity.
After creating the
ApplicationGateway
andManagedIdentity
, now run the below commands.KeyVault
andcertificate
by following the steps from the document and run the below command toAccess policy
withGet
selected onSecret permissions
and provided the created Managed Identity.