@@ -62,9 +62,9 @@ public void SetWebsiteHostName(string hostName, string? slotHostName)
6262 }
6363 }
6464
65- private readonly ProvisioningParameter _websiteHostNameParameter = new ProvisioningParameter ( " websiteHostName", typeof ( string ) ) ;
65+ private readonly ProvisioningParameter _websiteHostNameParameter = new ProvisioningParameter ( $ " { resource . Name } - websiteHostName", typeof ( string ) ) ;
6666
67- private readonly ProvisioningParameter _websiteSlotHostNameParameter = new ProvisioningParameter ( " websiteSlotHostName", typeof ( string ) ) ;
67+ private readonly ProvisioningParameter _websiteSlotHostNameParameter = new ProvisioningParameter ( $ " { resource . Name } - websiteSlotHostName", typeof ( string ) ) ;
6868
6969 public async Task ProcessAsync ( CancellationToken cancellationToken )
7070 {
@@ -164,6 +164,8 @@ private void ProcessEndpoints()
164164 if ( value is EndpointReference ep )
165165 {
166166 var context = environmentContext . GetAppServiceContext ( ep . Resource ) ;
167+ Infra . Add ( context . _websiteHostNameParameter ) ;
168+ Infra . Add ( context . _websiteSlotHostNameParameter ) ;
167169 return isSlot ?
168170 ( GetEndpointValue ( context . _slotEndpointMapping [ ep . EndpointName ] , EndpointProperty . Url , context . _websiteSlotHostNameParameter ) , secretType ) :
169171 ( GetEndpointValue ( context . _endpointMapping [ ep . EndpointName ] , EndpointProperty . Url , context . _websiteHostNameParameter ) , secretType ) ;
@@ -205,6 +207,8 @@ private void ProcessEndpoints()
205207 var context = environmentContext . GetAppServiceContext ( epExpr . Endpoint . Resource ) ;
206208 var mapping = isSlot ? context . _slotEndpointMapping [ epExpr . Endpoint . EndpointName ] : context . _endpointMapping [ epExpr . Endpoint . EndpointName ] ;
207209 var val = GetEndpointValue ( mapping , epExpr . Property , isSlot ? context . _websiteSlotHostNameParameter : context . _websiteHostNameParameter ) ;
210+ Infra . Add ( context . _websiteHostNameParameter ) ;
211+ Infra . Add ( context . _websiteSlotHostNameParameter ) ;
208212 return ( val , secretType ) ;
209213 }
210214
0 commit comments