I'm currently working on a .NET project and I need to update an Azure Application Gateway using the Azure.ResourceManager library. I've previously attempted to use the UpdateAsync()
methode available on the ApplicationGatewayResource
object but it allow only to update tags, not the full gateway config.
ApplicationGatewayResource appGateway = await _armClient.GetApplicationGatewayResource(ResourceIdentifier.Parse(_configuration["Azure:ApplicationGatewayId"])).GetAsync();
appGateway.Data.SslCertificates.Add(new ApplicationGatewaySslCertificate
{
Name = name,
Data = new BinaryData(pfx),
Password = pfxPassword
});
await appGateway.UpdateAsync(new());
Can someone provide an updated example of how to update an Azure Application Gateway using the current version of Azure.ResourceManager library in .NET ? Any guidance would be greatly appreciated.
Thanks in advance.