-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Can't upgrade static web apps github setting #22668
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatstaticwebappaz staticwebappaz staticwebapp
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatstaticwebappaz staticwebappaz staticwebapp
Related command
az staticwebapp update --name static-webapps --source https://github.com/xxx --branch main --token {{PAT}}
Describe the bug
When trying to update existing static web app with new private github repo setttings there is an error
Error code
BadRequest
Message
RepositoryToken is invalid. Please ensure the Github repository exists and the RepositoryToken is for an admin of the repository.
But when you create new one with the same token - everything ok.
When you trying to update existing static webapp with public github settings - everything ok
Problem related only updating private github repo settings.
Is there any chance to create new static web app without github part and then update to use with private github repo?
To Reproduce
az staticwebapp create -n {{MyStaticAppName}} -g {{someresourcegroup}} -l eastus2
az staticwebapp update -n {{MyStaticAppName}} -g {{someresourcegroup}} --source {{https://github.com/private_repo}} --branch {{master}} --token {{PAT}}
Expected behavior
Environment summary
azure-cli 2.36.0 *
core 2.36.0 *
telemetry 1.0.6
Extensions:
aks-preview 0.5.42
Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0
Python (Linux) 3.8.13
[GCC 9.4.0]
Additional context