From 9a336bbd9faee838a5d29f33e8c7c66417492939 Mon Sep 17 00:00:00 2001 From: Irwin Strachan Date: Wed, 21 Aug 2024 09:28:40 +0200 Subject: [PATCH] Update azure-container-app-job.md #You need the objectId of the application to update the keyCredentials Invoke-MgGraphRequest -Method PATCH -Uri "https://graph.microsoft.com/v1.0/applications/$applicationObjectId" -Body $body #or you can use the applicationId Invoke-MgGraphRequest -Method PATCH -Uri "https://graph.microsoft.com/v1.0/applications(appId='$applicationId')" -Body $body --- website/docs/monitoring/azure-container-app-job.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/monitoring/azure-container-app-job.md b/website/docs/monitoring/azure-container-app-job.md index 8d77da5a..169c8e20 100644 --- a/website/docs/monitoring/azure-container-app-job.md +++ b/website/docs/monitoring/azure-container-app-job.md @@ -85,7 +85,7 @@ $body = @{ } ) } | ConvertTo-Json -Invoke-MgGraphRequest -Method PATCH -Uri "https://graph.microsoft.com/v1.0/applications/$applicationId" -Body $body +Invoke-MgGraphRequest -Method PATCH -Uri "https://graph.microsoft.com/v1.0/applications(appId='$applicationId')" -Body $body ``` ## Create your Docker image @@ -183,4 +183,4 @@ sudo docker push .azurecr.io/maesterjob Begin by [creating a new Azure Container App Job](https://portal.azure.com/#create/Microsoft.ContainerAppJobs). You can use a simple cron job, an event trigger, or you can always manually invoke the job as well. Your Azure Container Registry will need to have an admin access key enabled for the Azure Portal process to succeed. -> For the CPU and memory, you may find that 1 GB of memory is not enough and 1.5 GB or 2 GB will offer more consistent success. \ No newline at end of file +> For the CPU and memory, you may find that 1 GB of memory is not enough and 1.5 GB or 2 GB will offer more consistent success.