https://pulumi.com logo
Title
r

rhythmic-vegetable-87369

06/18/2020, 8:17 AM
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 }
              }

         );