Im trying to disable an Azure serverless function by using the java client for Azure. the request seems to return without any errors, but the change is not actually applied. also, a link for decent documentation for the serverless java client (AzureResourceManager) with examples will be nice.
FunctionApp functionApp = azureResourceManager.functionApps().getById(functionId);
FunctionEnvelope f11 = functionApp.listFunctions().stream().findFirst().get();
f11.innerModel().withIsDisabled(true);
functionApp.update().apply();