ClassRoom Running Notes
asquarezone / azureclassroom Goto Github PK
View Code? Open in Web Editor NEWClassRoom Running Notes
ClassRoom Running Notes
Hello Team,
I have created json file to create a vnet with 4 subnets. However it is failed while executing with below error.
validations done:
Changed data in json document to create only one subnet. No luck
Assigned network access provider to sbscription.
Below is my json script
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"name": "supernetwork",
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2019-04-01",
"location":"Central US",
"properties": {
"addressSpace":{
"addressPrefixes": ["192.168.0.0/16"]
},
"subnets": [
{
"name": "subnet1",
"properties": {
"addressPrefixes": ["192.168.0.0/24"]
},
"name": "subnet2",
"properties":{
"addressPrefixes": ["192.168.1.0/24"]
},
"name": "subnet3",
"properties":{
"addressPrefixes": ["192.168.2.0/24"]
},
"name": "subnet4",
"properties":{
"addressPrefixes": ["192.168.3.0/24"]
}
}
]
}
}
]
}
Note: Resource group is created
Thanks,
QT- Yatindra
"while connecting Azure account from PS got below error.could you please help on this."
PS C:\Users\Administrator> Connect-AzAccount
Connect-AzAccount : The 'Connect-AzAccount' command was found in the module 'Az.Accounts', but the module could not be loaded. For more
information, run 'Import-Module Az.Accounts'.
At line:1 char:1
+ CategoryInfo : ObjectNotFound: (Connect-AzAccount:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
PS C:\Users\Administrator> Connect-AzAccount
Connect-AzAccount : The 'Connect-AzAccount' command was found in the module 'Az.Accounts', but the module could not be loaded. For more
information, run 'Import-Module Az.Accounts'.
At line:1 char:1
+ CategoryInfo : ObjectNotFound: (Connect-AzAccount:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
PS C:\Users\Administrator> Connect-AzureRmAccount
Connect-AzureRmAccount : The term 'Connect-AzureRmAccount' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ CategoryInfo : ObjectNotFound: (Connect-AzureRmAccount:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Below is my ARM template
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"locate":{
"type": "string",
"defaultValue": "Central US",
"allowedValues": ["Central US", "East US"]
},
"subnet-cidr":{
"type": "array",
"defaultValue": ["10.0.0.0/24", "10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
},
"subnet-name":{
"type": "array",
"defaultValue": ["max", "min", "med", "smax" ]
}
},
"variables": {
"vnetwork": {
"type": "string",
"defaultValue": "lgnetwork"
},
"space": {
"type": "array",
"defaultValue": ["10.0.0.0/16"]
}
},
"resources":[
{
"name": "[variables('vnetwork')]",
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2019-04-01",
"location":"[parameters('locate')]",
"properties": {
"addressSpace":{
"addressPrefixes": ["[variables('space')]"]
}
}
},
{
"name": "[concat(variables('vnetwork'),'/', parameters('subnet-name')[copyIndex()])]",
"type": "Microsoft.Network/virtualNetworks/subnets",
"apiVersion": "2019-04-01",
"location": "[parameters('locate')]",
"properties": {
"addressPrefix": "[parameters('subnet-cidr')[copyIndex()]]"
},
"dependsOn":
"[variables('vnetwork')]"
],
"copy": {
"name": "subnetloop",
"count": "[length(parameters('subnet-cidr'))]",
"mode": "Serial"
}
}
]
}
When i executed from portal facing an error
{"telemetryId":"7f66c350-9450-42cd-8fdc-18af594200e5","bladeInstanceId":"Blade_5d006d57516d4b989d0bd8da7fec62d4_50_0","galleryItemId":"Microsoft.Template","createBlade":"DeployToAzure","code":"InvalidTemplate","message":"Deployment template language expression evaluation failed: 'Unable to evaluate language function 'concat': all function arguments must be string literals, integer values, boolean values or arrays. Please see https://aka.ms/arm-template-expressions/#concat for usage details.'. Please see https://aka.ms/arm-template-expressions for usage details.","additionalInfo":[{"type":"TemplateViolation","info":{"lineNumber":0,"positionNumber":0,"snippet":""}}]}
Could you guys help me in resolving this issue.
Thanks,
qt-Yatindra
C:\jenkins>vagrant box add bento/ubuntu16.04
The box 'bento/ubuntu16.04' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Vagrant Cloud, please verify you're logged in via
vagrant login
. Also, please double-check the name. The expanded
URL and error message are shown below:
URL: ["https://vagrantcloud.com/bento/ubuntu16.04"]
Error: The requested URL returned error: 404 Not Found
While creating the migration project, i am not able to create it, since the UI used at the time was different and now and a different.
Now it is asking to add the tools and select the migration steps, the migration windows which we have seen is not seen now ?
will there be any change in the UI.
Regards
j prasad
ERROR: Running ["C:\Users\Sajan Sanvika\AppData\Local\Temp\chocolatey\sql-server-express\14.1801.3958.1\SQLEXPR\setup.exe" /IACCEPTSQLSERVERLICENSETERMS /Q /ACTION=install /INSTANCEID=SQLEXPRESS /INSTANCENAME=SQLEXPRESS /UPDATEENABLED=FALSE ] was not successful. Exit code was '-2054422508'. See log for possible error messages.
The install of sql-server-express was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\sql-server-express\tools\chocolateyinstall.ps1'.
See log for details.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.