get Log Profile
Use this data source to access the properties of a Log Profile. !>NOTE: Azure Log Profiles will be retired on 30th September 2026 and will be removed in v4.0 of the AzureRM Provider. More information on the deprecation can be found in the Azure documentation.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.monitoring.MonitoringFunctions;
import com.pulumi.azure.monitoring.inputs.GetLogProfileArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = MonitoringFunctions.getLogProfile(GetLogProfileArgs.builder()
.name("test-logprofile")
.build());
ctx.export("logProfileStorageAccountId", example.applyValue(getLogProfileResult -> getLogProfileResult.storageAccountId()));
}
}
Content copied to clipboard
Return
A collection of values returned by getLogProfile.
Parameters
argument
A collection of arguments for invoking getLogProfile.
Return
A collection of values returned by getLogProfile.
See also
Parameters
name
Specifies the Name of the Log Profile.
suspend fun getLogProfile(argument: suspend GetLogProfilePlainArgsBuilder.() -> Unit): GetLogProfileResult
Return
A collection of values returned by getLogProfile.
See also
Parameters
argument
Builder for com.pulumi.azure.monitoring.kotlin.inputs.GetLogProfilePlainArgs.