An Azure service that provides streamlined full-stack web app development.
The supported portal path for this setting is Settings > Configuration > Deployment configuration on the Static Web App resource. That is the documented place to choose the deployment authorization policy for an existing app. The Overview > Manage deployment token page is only for retrieving or resetting the token, not for changing the authorization policy.
For an existing app:
- Open the Static Web App in Azure portal.
- Go to Settings > Configuration > Deployment configuration.
- Change the Deployment authorization policy to Azure deployment token.
- Save the change.
- Go back to Overview > Manage deployment token.
- Select Reset token.
- Copy the new token.
- In GitHub, open the repository Settings > Security > Actions.
- Update the
AZURE_STATIC_WEB_APPS_API_TOKEN...repository secret with the new token. - Rerun the workflow.
If the workflow file targets a different branch than intended, update the branch names in the GitHub workflow. For some apps created during the preview period, changing the branch can also require resetting the deployment token.
On the specific repositoryToken PAT scope/format question, the available documentation only states that Static Web Apps supports either an Azure deployment token or a GitHub access token as deployment authorization policies. It does not provide a supported PAT scope/format matrix for repositoryToken in the management API.
On the API/CLI question, the documented UI for changing the policy is the Azure portal path above. The provided documentation does not describe a supported CLI or REST-only requirement for switching the policy.