```var matchnetConfirmationsApiNamedValue = new Na...
# azure
r
Copy code
var matchnetConfirmationsApiNamedValue = new NamedValue("matchnetconfirmationsapi-key", new NamedValueArgs
            {
                ResourceGroupName = resourceGroup.Name,
                ApiManagementName = confirmationApiService.Name,
                DisplayName = "matchnetconfirmationsapi-key",
                Value = "Qxxxx8g==",
                Secret = true,
                Name = "matchnetconfirmationsapi-key"
            });

            var backendApi = new Backend("ApiBackend", new BackendArgs
            {
                ResourceGroupName = resourceGroup.Name,
                ApiManagementName = confirmationApiService.Name,
                ResourceId = "<https://management.azure.com/subscriptions/xxx/resourceGroups/matchnet-assessments-rg/providers/Microsoft.Web/sites/MatchnetConfirmationsApi>",
                Protocol = "http",
                Url = "<https://matchnetconfirmationsapi.azurewebsites.net/api>",
                Credentials = new BackendCredentialsArgs
                {

                    Header = { { "x-functions-key", matchnetConfirmationsApiNamedValue.Name } }
                }
            },
              new CustomResourceOptions()
              {
                  DependsOn = { matchnetConfirmationsApiNamedValue }
              }

         );