Skip to content

CdnEndpoint: ID not case sensitive #10576

@magodo

Description

@magodo

When I create a cdn endpoint resource using following API request, the ID returned in response isn't the endpoint of my request. The difference is the g in resourceG(g)roup segment:

REQUEST

PUT https://management.azure.com/subscriptions/***/resourceGroups/xcdn-example-resources/providers/Microsoft.Cdn/profiles/example-cdn/endpoints/testep100?api-version=2019-04-15 HTTP/2.0
{                                                                                                                                                                                                                                                                               
    "location": "westeurope",                                                                                                                                                                                                                                                   
    "properties": {                                                                                                                                                                                                                                                             
        "contentTypesToCompress": [],                                                                                                                                                                                                                                           
        "deliveryPolicy": {                                                                                                                                                                                                                                                     
            "description": "",                                                                                                                                                                                                                                                  
            "rules": []                                                                                                                                                                                                                                                         
        },                                                                                                                                                                                                                                                                      
        "geoFilters": [],                                                                                                                                                                                                                                                       
        "isCompressionEnabled": false,                                                                                                                                                                                                                                          
        "isHttpAllowed": true,                                                                                                                                                                                                                                                  
        "isHttpsAllowed": true,                                                                                                                                                                                                                                                 
        "originHostHeader": "",                                                                                                                                                                                                                                                 
        "origins": [                                                                                                                                                                                                                                                            
            {                                                                                                                                                                                                                                                                   
                "name": "example",                                                                                                                                                                                                                                              
                "properties": {                                                                                                                                                                                                                                                 
                    "hostName": "www.contoso.com",                                                                                                                                                                                                                              
                    "httpPort": 80,                                                                                                                                                                                                                                             
                    "httpsPort": 443                                                                                                                                                                                                                                            
                }                                                                                                                                                                                                                                                               
            }                                                                                                                                                                                                                                                                   
        ],                                                                                                                                                                                                                                                                      
        "queryStringCachingBehavior": "IgnoreQueryString"                                                                                                                                                                                                                       
    },                                                                                                                                                                                                                                                                          
    "tags": {}                                                                                                                                                                                                                                                                  
}                        

RESPONSE

{                                                                                                                                                                                                                                                                               
    "id": "/subscriptions/***/resourcegroups/xcdn-example-resources/providers/Microsoft.Cdn/profiles/example-cdn/endpoints/testep100",                                                                                                         
    "location": "WestEurope",                                                                                                                                                                                                                                                   
    "name": "testep100",                                                                                                                                                                                                                                                        
    "properties": {                                                                                                                                                                                                                                                             
        "contentTypesToCompress": [],                                                                                                                                                                                                                                           
        "customDomains": [],                                                                                                                                                                                                                                                    
        "deliveryPolicy": {                                                                                                                                                                                                                                                     
            "description": "",                                                                                                                                                                                                                                                  
            "rules": []                                                                                                                                                                                                                                                         
        },                                                                                                                                                                                                                                                                      
        "geoFilters": [],                                                                                                                                                                                                                                                       
        "hostName": "testep100.azureedge.net",                                                                                                                                                                                                                                  
        "isCompressionEnabled": false,                                                                                                                                                                                                                                          
        "isHttpAllowed": true,                                                                                                                                                                                                                                                  
        "isHttpsAllowed": true,                                                                                                                                                                                                                                                 
        "optimizationType": null,                                                                                                                                                                                                                                               
        "originHostHeader": "",                                                                                                                                                                                                                                                 
        "originPath": null,                                                                                                                                                                                                                                                     
        "origins": [                                                                                                                                                                                                                                                            
            {                                                                                                                                                                                                                                                                   
                "name": "example",                                                                                                                                                                                                                                              
                "properties": {                                                                                                                                                                                                                                                 
                    "hostName": "www.contoso.com",                                                                                                                                                                                                                              
                    "httpPort": 80,                                                                                                                                                                                                                                             
                    "httpsPort": 443                                                                                                                                                                                                                                            
                }                                                                                                                                                                                                                                                               
            }                                                                                                                                                                                                                                                                   
        ],                                                                                                                                                                                                                                                                      
        "probePath": null,                                                                                                                                                                                                                                                      
        "provisioningState": "Creating",                                                                                                                                                                                                                                        
        "queryStringCachingBehavior": "IgnoreQueryString",                                                                                                                                                                                                                      
        "resourceState": "Creating"                                                                                                                                                                                                                                             
    },                                                                                                                                                                                                                                                                          
    "tags": {},                                                                                                                                                                                                                                                                 
    "type": "Microsoft.Cdn/profiles/endpoints"                                                                                                                                                                                                                                  
}                                             

The expected behavior is that the id in response body should keep the case (i.e. .../resourceGroups/...) as specified in request endpoint URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Network - CDNService AttentionWorkflow: This issue is responsible by Azure service team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions