ARM Validation issue - The repository url must be a DevOps repository
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I am trying to deploy my Static Web App ressource using an ARM template.
**To Reproduce**
Steps to reproduce the behavior:
1. Create the following ARM template
2. Validate it
4. See error
Here is a part of the ARM template :
```
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"name": "nestedTemplateSWACms",
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Web/staticSites",
"apiVersion": "2021-03-01",
"name": "[parameters('SWAName')]",
"location": "[parameters('SWALocation')]",
"tags": "[parameters('ResourceTags')]",
"sku": "[parameters('SWASku')]",
"properties": {
"repositoryUrl": "[parameters('SWARepoUrl')]",
"branch": "[parameters('SWARepoBranch')]",
"stagingEnvironmentPolicy": "Enabled",
"allowConfigFileUpdates": true,
"provider": "DevOps",
"enterpriseGradeCdnStatus": "Disabled"
}
}
]
}
}
},
```
Note that the SWARepoURL variable is :
`https://.visualstudio.com//_git/swa-widget`
Then, the error message :
```
ValidationForResourceFailed - Validation failed for a resource. Check 'Error.Details[0]' for more information.
ValidationForResourceFailed - The repository url must be a DevOps repository.
```
**Expected behavior**
The Static web app deployment
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.