Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some snippets give errors about the number of segments in the resource type #758

Closed
StephenWeatherford opened this issue Jun 4, 2020 · 1 comment

Comments

@StephenWeatherford
Copy link
Contributor

E.g. Automation Certificate

{
"resources": [
{
"name": "automationCertificate1",
"type": "Microsoft.Automation/automationAccounts/certificates", /// <<<< ERROR HERE too many segments
"apiVersion": "2015-10-31",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', 'automationAccount1')]"
],
"properties": {
"base64Value": "base64Value",
"description": "description",
"thumbprint": "thumbprint",
"isExportable": true
}
}// Insert here: resource
],
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"variables": {
// Insert here: variable
},
"parameters": {
// Insert here: parameter
},
"outputs": {
// Insert here: output
},
"functions": [{
"namespace": "udf",
"members": {
// Insert here: user function
}
}]
}

I assume this is because the snippet should be used as a child.

@StephenWeatherford
Copy link
Contributor Author

Moved to #748

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant