Integration Test #82
integration-test.yml
on: workflow_dispatch
deploy-and-run
28s
Matrix: test
Annotations
3 errors and 3 warnings
deploy-and-run
ERROR: unrecognized arguments: $schema: https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#,
contentVersion: 1.0.0.0,
parameters: ***,
variables: ***
vmName: integration-test-vm,
nsgName: integration-test-vm-nsg
***,
resources: [
***
type: Microsoft.Network/networkSecurityGroups,
apiVersion: 2021-02-01,
name: [variables('nsgName')],
location: [resourceGroup().location],
properties: ***
securityRules: [
***
name: allow-ssh,
properties: ***
priority: 1000,
protocol: Tcp,
access: Allow,
direction: Inbound,
sourceAddressPrefix: *,
sourcePortRange: *,
destinationAddressPrefix: *,
destinationPortRange: 22
***
***,
***
name: allow-4000,
properties: ***
priority: 1010,
protocol: Tcp,
access: Allow,
direction: Inbound,
sourceAddressPrefix: *,
sourcePortRange: *,
destinationAddressPrefix: *,
destinationPortRange: 4000
***
***
]
***
***,
***
type: Microsoft.Compute/virtualMachines,
apiVersion: 2021-03-01,
name: [variables('vmName')],
location: [resourceGroup().location],
dependsOn: [
[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]
],
properties: ***
hardwareProfile: ***
vmSize: Standard_D16_v5
***,
osProfile: ***
computerName: [variables('vmName')],
adminUsername: azureuser,
linuxConfiguration: ***
disablePasswordAuthentication: true,
ssh: ***
publicKeys: [
***
path: /home/azureuser/.ssh/authorized_keys,
keyData: ***
***
]
***
***
***,
storageProfile: ***
imageReference: ***
publisher: Canonical,
offer: 0001-com-ubuntu-server-jammy,
sku: 22_04-lts,
version: latest
***
***,
networkProfile: ***
networkInterfaces: [
***
properties: ***
networkSecurityGroup: ***
id: [resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]
***
***
***
]
***
***
***
],
outputs: ***
publicIpAddress: ***
type: string,
value: [reference(resourceId('Microsoft.Network/publicIPAddresses', concat(variables('vmName'), '-ip'))).ipAddress]
***
***
***
|
deploy-and-run
Examples from AI knowledge base:
az deployment group create --resource-group testgroup --template-file demotemplate.json --parameters exampleString='inline
Create a deployment at resource group from a local template file, using parameters from an array string.
az deployment group create --parameters '*** \"policyName\": *** \"value\": \"policy2\" *** ***' --resource-group testgroup --template-uri https://myresource/azuredeploy.json
Start a deployment at resource group. (autogenerated)
https://docs.microsoft.com/en-US/cli/azure/deployment/group#az_deployment_group_create
Read more about the command in reference docs
|
deploy-and-run
Error: Deployment failed.
|
deploy-and-run
ERROR: unrecognized arguments: $schema: https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#,
contentVersion: 1.0.0.0,
parameters: ***,
variables: ***
vmName: integration-test-vm,
nsgName: integration-test-vm-nsg
***,
resources: [
***
type: Microsoft.Network/networkSecurityGroups,
apiVersion: 2021-02-01,
name: [variables('nsgName')],
location: [resourceGroup().location],
properties: ***
securityRules: [
***
name: allow-ssh,
properties: ***
priority: 1000,
protocol: Tcp,
access: Allow,
direction: Inbound,
sourceAddressPrefix: *,
sourcePortRange: *,
destinationAddressPrefix: *,
destinationPortRange: 22
***
***,
***
name: allow-4000,
properties: ***
priority: 1010,
protocol: Tcp,
access: Allow,
direction: Inbound,
sourceAddressPrefix: *,
sourcePortRange: *,
destinationAddressPrefix: *,
destinationPortRange: 4000
***
***
]
***
***,
***
type: Microsoft.Compute/virtualMachines,
apiVersion: 2021-03-01,
name: [variables('vmName')],
location: [resourceGroup().location],
dependsOn: [
[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]
],
properties: ***
hardwareProfile: ***
vmSize: Standard_D16_v5
***,
osProfile: ***
computerName: [variables('vmName')],
adminUsername: azureuser,
linuxConfiguration: ***
disablePasswordAuthentication: true,
ssh: ***
publicKeys: [
***
path: /home/azureuser/.ssh/authorized_keys,
keyData: ***
***
]
***
***
***,
storageProfile: ***
imageReference: ***
publisher: Canonical,
offer: 0001-com-ubuntu-server-jammy,
sku: 22_04-lts,
version: latest
***
***,
networkProfile: ***
networkInterfaces: [
***
properties: ***
networkSecurityGroup: ***
id: [resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]
***
***
***
]
***
***
***
],
outputs: ***
publicIpAddress: ***
type: string,
value: [reference(resourceId('Microsoft.Network/publicIPAddresses', concat(variables('vmName'), '-ip'))).ipAddress]
***
***
***
|
deploy-and-run
Examples from AI knowledge base:
az deployment group validate --resource-group testrg --template-file ***template-file***
Validate whether a template is valid at resource group.
az deployment group validate --parameters MyValue=This [email protected] --resource-group testrg --template-uri https://myresource/azuredeploy.json
Validate whether a template is valid at resource group. (autogenerated)
https://docs.microsoft.com/en-US/cli/azure/deployment/group#az_deployment_group_validate
Read more about the command in reference docs
|
deploy-and-run
Template validation failed.
|