New-AzCdnCustomDomain
Creates a custom domain for a CDN endpoint.
Syntax
New-AzCdnCustomDomain
-HostName <String>
-CustomDomainName <String>
-EndpointName <String>
-ProfileName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzCdnCustomDomain
-HostName <String>
-CustomDomainName <String>
-CdnEndpoint <PSEndpoint>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-AzCdnCustomDomain cmdlet creates a custom domain for the Azure Content Delivery Network (CDN) endpoint.
Examples
Example 1
New-AzCdnCustomDomain -ResourceGroupName myresourcegroup -ProfileName mycdnprofile -EndpointName myendpoint -CustomDomainName cdn-example-com -HostName cdn.example.com
HostName : cdn.example.com
ValidationData :
ResourceState : Active
CustomHttpsProvisioningState : Disabled
CustomHttpsProvisioningSubstate : None
ResourceGroupName : myresourcegroup
ProfileName : mycdnprofile
EndpointName : myendpoint
Id : /subscriptions/11111111-1111-1111-1111-111111111111/resourcegroups/myresourcegroup/providers
/Microsoft.Cdn/profiles/mycdnprofile/endpoints/myendpoint/customdomains/cdn-example-com
Name : cdn-example-com
Type : Microsoft.Cdn/profiles/endpoints/customdomains
ProvisioningState : Succeeded
Parameters
Specifies the CDN endpoint object to which the custom domain is added.
| Type: | PSEndpoint |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the resource name of the custom domain.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the name of the endpoint.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the host name of the custom domain.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the name of the profile.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the name of the resource group to which the custom domain belongs.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
Outputs
Related Links
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ