rkuehfus / azuremonitoringhackathon Goto Github PK
View Code? Open in Web Editor NEWOperationalize Azure deployments with Azure platform tools
Operationalize Azure deployments with Azure platform tools
Hi rkuehfus.
I know this could be so much to ask for but it would be nice to have an step by step guide of how to deploy the entire hackathon so customer with less level on azure can use it. Hope you have something like that in the future.
Thanks for this amazing contribution.
Hey Robert,
I'm receiving the following error when the script tries to provision the VMSS:
Failed to restart virtual machine scale set 'arwebScaleSet'. Error: VM has reported a failure when processing extension 'CustomScriptExtension'. Error message: "Failed to download all specified files. Exiting. Error Message: Unable to connect to the remote server".
Also, here is the exact text of the VMSS CustomScriptExtension:
{
"fileUris": [
"https://raw.githubusercontent.com/rkuehfus/AzureMonitoringHackathon/master/SetupWebServers.ps1"
],
"commandToExecute": "powershell.exe -ExecutionPolicy Unrestricted -File SetupWebServers.ps1 arVSSrv17 vmadmin *********"
}
hi @rkuehfus, after completing deployment the guide eShop application doesn't appear, there is just IIS welcome page.
VS virtual machine has the following custom script extension status
[
{
"code": "ComponentStatus/StdOut/succeeded",
"level": "Info",
"displayStatus": "Provisioning succeeded",
"message": " Version=4.0.0.0, Culture=neutral, \\n PublicKeyToken=b77a5c561934e089\\nTypeHandle : System.RuntimeTypeHandle\\nDeclaringMethod : \\nBaseType : System.MulticastDelegate\\nUnderlyingSystemType : System.LocalAppContext+TryGetSwitchDelegate\\nFullName : System.LocalAppContext+TryGetSwitchDelegate\\nAssemblyQualifiedName : System.LocalAppContext+TryGetSwitchDelegate, \\n System.IO.Compression.FileSystem, \\n Version=4.0.0.0, Culture=neutral, \\n PublicKeyToken=b77a5c561934e089\\nNamespace : System\\nGUID : bf148a77-00ed-382a-9f6a-2a95b8338b87\\nIsEnum : False\\nGenericParameterAttributes : \\nIsSecurityCritical : False\\nIsSecuritySafeCritical : False\\nIsSecurityTransparent : True\\nIsGenericTypeDefinition : False\\nIsGenericParameter : False\\nGenericParameterPosition : \\nIsGenericType : False\\nIsConstructedGenericType : False\\nContainsGenericParameters : False\\nStructLayoutAttribute : System.Runtime.InteropServices.StructLayoutAttribu\\n te\\nName : TryGetSwitchDelegate\\nMemberType : NestedType\\nDeclaringType : System.LocalAppContext\\nReflectedType : System.LocalAppContext\\nMetadataToken : 33554440\\nGenericTypeParameters : {}\\nDeclaredConstructors : {Void .ctor(System.Object, IntPtr)}\\nDeclaredEvents : {}\\nDeclaredFields : {}\\nDeclaredMembers : {Boolean Invoke(System.String, Boolean ByRef), \\n System.IAsyncResult BeginInvoke(System.String, \\n Boolean ByRef, System.AsyncCallback, \\n System.Object), Boolean EndInvoke(Boolean ByRef, \\n System.IAsyncResult), Void .ctor(System.Object, \\n IntPtr)}\\nDeclaredMethods : {Boolean Invoke(System.String, Boolean ByRef), \\n System.IAsyncResult BeginInvoke(System.String, \\n Boolean ByRef, System.AsyncCallback, \\n System.Object), Boolean EndInvoke(Boolean ByRef, \\n System.IAsyncResult)}\\nDeclaredNestedTypes : {}\\nDeclaredProperties : {}\\nImplementedInterfaces : {System.ICloneable, \\n System.Runtime.Serialization.ISerializable}\\nTypeInitializer : \\nIsNested : True\\nAttributes : AutoLayout, AnsiClass, Class, NestedPrivate, \\n Sealed\\nIsVisible : False\\nIsNotPublic : False\\nIsPublic : False\\nIsNestedPublic : False\\nIsNestedPrivate : True\\nIsNestedFamily : False\\nIsNestedAssembly : False\\nIsNestedFamANDAssem : False\\nIsNestedFamORAssem : False\\nIsAutoLayout : True\\nIsLayoutSequential : False\\nIsExplicitLayout : False\\nIsClass : True\\nIsInterface : False\\nIsValueType : False\\nIsAbstract : False\\nIsSealed : True\\nIsSpecialName : False\\nIsImport : False\\nIsSerializable : True\\nIsAnsiClass : True\\nIsUnicodeClass : False\\nIsAutoClass : False\\nIsArray : False\\nIsByRef : False\\nIsPointer : False\\nIsPrimitive : False\\nIsCOMObject : False\\nHasElementType : False\\nIsContextful : False\\nIsMarshalByRef : False\\nGenericTypeArguments : {}\\nCustomAttributes : {}\\n\\nd----- 1/29/2019 5:13 AM eShopPub \\n\\n"
},
{
"code": "ComponentStatus/StdErr/succeeded",
"level": "Info",
"displayStatus": "Provisioning succeeded",
"message": "Invoke-WebRequest : Unable to read data from the transport connection: An \\nexisting connection was forcibly closed by the remote host.\\nAt C:\\Packages\\Plugins\\Microsoft.Compute.CustomScriptExtension\\1.9.3\\Downloads\\\\n0\\SetupVSServer.ps1:11 char:1\\n+ Invoke-WebRequest -Uri \"https://download.visualstudio.microsoft.com/d ...\\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n + CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], IOExcepti \\n on\\n + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Comma \\n nds.InvokeWebRequestCommand\\n \\nStop-Process : Cannot find a process with the name \"Explorer\". Verify the \\nprocess name and call the cmdlet again.\\nAt C:\\Packages\\Plugins\\Microsoft.Compute.CustomScriptExtension\\1.9.3\\Downloads\\\\n0\\SetupVSServer.ps1:21 char:1\\n+ Stop-Process -Name Explorer -Force\\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n + CategoryInfo : ObjectNotFound: (Explorer:String) [Stop-Process] \\n , ProcessCommandException\\n + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell. \\n Commands.StopProcessCommand\\n \\nNew-SmbShare : No mapping between account names and security IDs was done. \\nAt C:\\Packages\\Plugins\\Microsoft.Compute.CustomScriptExtension\\1.9.3\\Downloads\\\\n0\\SetupVSServer.ps1:92 char:1\\n+ New-SmbShare -Name \"eShopPub\" -Path \"C:\\eShopPub\" -FullAccess $env:co ...\\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n + CategoryInfo : NotSpecified: (MSFT_SMBShare:ROOT/Microsoft/Wind \\n ows/SMB/MSFT_SMBShare) [New-SmbShare], CimException\\n + FullyQualifiedErrorId : Windows System Error 1332,New-SmbShare\\n \\nGrant-SmbShareAccess : No MSFT_SMBShare objects found with property 'Name' \\nequal to 'eShopPub'. Verify the value of the property and retry.\\nAt C:\\Packages\\Plugins\\Microsoft.Compute.CustomScriptExtension\\1.9.3\\Downloads\\\\n0\\SetupVSServer.ps1:93 char:1\\n+ Grant-SmbShareAccess -Name \"eShopPub\" -AccountName SYSTEM -AccessRigh ...\\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n + CategoryInfo : ObjectNotFound: (eShopPub:String) [Grant-SmbShar \\n eAccess], CimJobException\\n + FullyQualifiedErrorId : CmdletizationQuery_NotFound_Name,Grant-SmbShareA \\n ccess\\n \\nGrant-SmbShareAccess : No MSFT_SMBShare objects found with property 'Name' \\nequal to 'eShopPub'. Verify the value of the property and retry.\\nAt C:\\Packages\\Plugins\\Microsoft.Compute.CustomScriptExtension\\1.9.3\\Downloads\\\\n0\\SetupVSServer.ps1:94 char:1\\n+ Grant-SmbShareAccess -Name \"eShopPub\" -AccountName Everyone -AccessRi ...\\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n + CategoryInfo : ObjectNotFound: (eShopPub:String) [Grant-SmbShar \\n eAccess], CimJobException\\n + FullyQualifiedErrorId : CmdletizationQuery_NotFound_Name,Grant-SmbShareA \\n ccess\\n "
}
]
meanwhile, I'll try to fix it, will appreciate you for advice.
New-AzureRmResourceGroupDeployment : Cannot retrieve the dynamic parameters for the cmdlet. After parsing a value
an unexpected character was encountered: s. Path 'parameters.password.reference.keyVault.id', line 17, position 10.
At line:1 char:1
+ CategoryInfo : InvalidArgument: (:) [New-AzureRmResourceGroupDeployment], ParameterBindingException
+ FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implem
entation.NewAzureResourceGroupDeploymentCmdlet
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.