Azure CDN Profile
Introduction
The Azure CDN Profile is a configurable entity within the Azure Content Delivery Network (CDN) that allows developers to define and manage how their content is distributed and cached across the global Azure network. It supports creating either a Front Door Standard/Premium or a traditional CDN profile, providing flexibility in how content is served to users. This documentation details the properties and configurations available for an Azure CDN Profile within the SDK, facilitating its creation, management, and optimization.
For detailed information and the latest updates on Azure CDN Profiles, please refer to the official Azure Documentation.
Azure CDN Profiles enhance your application's performance by ensuring content is delivered from the closest geographical location to the user, reducing latency, and improving load times. Through the SDK, users can specify various settings such as the CDN's geographical region, SKU, and more, tailoring the content delivery network to their specific needs.
Properties
The table below lists all properties available for configuring an Azure CDN Profile through the SDK. Each property includes details such as its type, whether it's required, and a brief description.
Creating a CDN Profile
To create a CDN profile, instantiate an AzureCdnProfileBuilder
and set the desired properties. Here is a basic example:
AzureCdnProfile cdnProfile = AzureCdnProfile.builder()
.withId("myCDNProfile)
.withName("cdn-profile-001")
.withDescription("Azure CDN Profile instance named 'cdn-profile-001'")
.withDisplayName("Azure CDN Profile - cdn-profile-001")
.withResourceGroup(AzureResourceGroup.builder()
.withName("rg-samples")
.withRegion(AzureRegion.WEST_EUROPE)
.withTag("Purpose", "Samples")
.build())
.withRegion(AzureRegion.WEST_EUROPE)
.withSku(AzureCdnSku.STANDARD_MICROSOFT)
.withIdentity(AzureManagedServiceIdentity.builder()
.withType(AzureIdentityType.SYSTEM_ASSIGNED)
.build())
.build();