in src/Azure.Deployments.Extensibility.Providers.ThirdParty/ContainerManager.cs [32:45]
public async Task Delete(string containerName, CancellationToken cancellation)
{
var containerAppName = $"{ContainerAppPrefix}{containerName}";
var resourceGroup = armClient.GetResourceGroupResource(ResourceGroupResource.CreateResourceIdentifier(appSettings.ThirdPartySubId, appSettings.ThirdPartyRgName));
if (await resourceGroup.GetContainerApps().ExistsAsync(containerAppName, cancellation))
{
var containerApp = await resourceGroup.GetContainerApps().GetAsync(containerAppName, cancellation);
await containerApp.Value.DeleteAsync(
WaitUntil.Completed,
cancellation);
}
}