Hello everyone! I am trying to use <azure-native.a...
# azure
e
Hello everyone! I am trying to use azure-native.app.ContainerAppsSourceControl to configure GitHub Actions integration with Azure Container Apps. When I run my build, I am getting
error: Code="MissingAuthorizationToken" Message="Can not find github access token from header."
. I notice in the MS REST API for this, that there is an input for
githubPersonalAccessToken
under
properties.githubActionConfiguration
. However, there is no such input in Pulumi's
azure-native.app.ContainerAppsSourceControl
. Am I missing something? Thanks in advance!
a
The Azure API version
pulumi_azure_native
has pinned for the app provider is
v20221001
but the
githubPersonalAccessToken
parameter was introduced later and is available in
v20240301
of the app provider. This should do the trick:
import * as app from "@pulumi/azure-native/app/v20240301";
e
Thank you @adventurous-butcher-54166!. I am familiar with how to do that in TS. I am using GO with Pulumi now and have never figured that out with GO, so that will be my next challenge. Logic would think "github.com/pulumi/pulumi-azure-native-sdk/app/v20240301", but that does not work.
I figured that out. The syntax in GO is like this...
app20240301 "<http://github.com/pulumi/pulumi-azure-native-sdk/app/v2/v20240301|github.com/pulumi/pulumi-azure-native-sdk/app/v2/v20240301>
Now I can use the
githubPersonalAccessToken
and my build works. However,
destroy
does not. With
destroy
, I get
error: Code="MissingAuthorizationToken" Message="Can not find github access token from header."
I have not figured out what the root of the new issue is yet. All works fine with
deploy
and
destroy
when using the MS API natively outside of Pulumi.
Correction. The
destroy
or rather
delete
verb does not work when using the MS API natively outside of Pulumi. I get the same error message, so that suggests that it is an issue with the MS API and nothing to do with Pulumi.