ARM: A parameter cannot be found that matches parameter name ‘_artifactsLocationSasToken’

5 Dec

 

Short note to myself.

Problem

If you are trying to deploy an ARM template using Visual studio and you get the error below…..

AzureRmResourceGroupDeployment : A parameter cannot be found that matches parameter name ‘_artifactsLocationSasToken’

… do not spend 1 hour on trying to figure out why the parameter isn’t found. Just continue reading the solution below.

Solution

 

Scan your ARM template(s) if it has the correct formatting!!! Even when the deployment doesn’t mention any validation errors (because the deploy hasn’t reached this step yet)

So in my case I had one } too much , so the next part was seen as a parameter for the main resource. The compiler and syntax highlight didn’t complain but the deployment gave the ‘_artifactsLocationSasToken’ error.

So just be warned 😉

 

Happy Azurering

Michel Kamp

Michelkamp.wordpress.com

AZURE ARM template deployment

30 Nov

 

Issue:

When you are developing ARM templates in Visual studio and want to deploy you will get an error:

[ERROR] The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Container name ‘dev_mka_extentiontest-stageartifacts’ is invalid. Valid names start and end with a lower case letter or a number and has in between a lower case letter, number or dash with no consecutive dashes and is 3 through 63 characters long.

[ERROR] + CategoryInfo : InvalidArgument: (:) [Set-AzureStorageBlobContent], ArgumentException

[ERROR] + FullyQualifiedErrorId : ArgumentException,Microsoft.WindowsAzure.Commands.Storage.Blob.SetAzureBlobContentCommand

 

Investigation

Reading the error message it should be something with the name of the artifacts container the deployment script wants to create.

I use the deployment configured as below:

So I just took the Azure storage explorer and tried to create exactly the same container. And guess … same error.

So I changed the _ in the name to – and guess … it worked.

Solution:

So be sure you don’t create a Resource group with_ in the name. Yes I know Azure will accept it but the deployment script used in Visual studio has an issue with this.

 

 

Happy Azurering

Michel kamp

https://michelkamp.wordpress.com

Azure Marketplace Solution UI Test

29 Nov

Hi,

A quick note for all DevOps under us:

Currently I am doing an investigation on how to publish a solution to the Azure marketplace. You have 2 ways to do this. A Virtual Machine offer or a Solution template offer.

A Virtual Machine offer will be a sysprep’d VM that will contain all your pre-installed software and just will be deployed as a new virtual machine. So you will have to prepare a VM and sysprep/generalize it and upload it to Azure.

A Solution template offer is somehow more advanced. Here you don’t have to configure a sysprep’d VM image but you just use an ARM template to rollout a brand new VM and then use a script extension resource to deploy your artifacts (aka your software to install). The cool part is that you can also change the UI interface on the Azure portal when configuring the deployment. This is done with the createUiDefinition.json file that has to be a part of the solution zip file you upload to azure.

An example of this can be found here: https://github.com/Azure/azure-quickstart-templates/tree/master/marketplace-samples

So when you have created all your ARM templates and put it into a Solution zip file (aka just zip all the ARM templates in one file) you will upload it using the https://publish.windowsazure.com portal and make a staged publish. (aka test rollout/publish)

Now you have to wait for a couple of hours before it will be ready to test it out. And this is the part that is annoying. There is no way to test the custom UI interface without having to do a staged publish and wait for a couple of hours a again……

Or is there …. ??

Yes there is! Thanks to this link I was able to test my custom deployment UI.

All you will have to do is:

  1. Create using the Azure storage explorer a new public container. (so set the public access level). For example named : “test”
  2. Copy the file “createUiDefinition.json” to this container.
  3. Check if you can open the file using the “copy Url” in a new browser.
  4. Now you will have to encode this URL , you can use http://meyerweb.com/eric/tools/dencoder/ for this.
  5. The URL looks like this now: https%3A%2F%2Fegnlmkotkizce.blob.core.windows.net%2Ftest%2FcreateUiDefinition.json
  6. Now replace the URL in the text below: (note: if you see ” replace it by the normal double quotes , this is a WordPress issue)

    https://portal.azure.com/#blade/Microsoft_Azure_Compute/CreateMultiVmWizardBlade/internal_bladeCallId/anything/internal_bladeCallerParams/{“initialData”:{},”providerConfig”:{“createUiDefinition”:”URL from step 5“}}

     

  7. The end result could look like this:

    https://portal.azure.com/#blade/Microsoft_Azure_Compute/CreateMultiVmWizardBlade/internal_bladeCallId/anything/internal_bladeCallerParams/{“initialData”:{},”providerConfig”:{“createUiDefinition”:”https%3A%2F%2Fegnlmkotkizce.blob.core.windows.net%2Ftest%2FcreateUiDefinition.json“}}

     

  8. Open a new browser and paste in the URL from step 7. And the result will be ….

 

Super handy and cool!

 

Happy scomming azuring

Michel Kamp

https://michelkamp.wordpress.com

 

 

 

OMS: Querying OMS the Message Analyzer way

22 Sep

 

Hi,

Short post to give you something cool I tried out today. I think about 1 year ago Microsoft dropped the Network Analyzer tool and replaced it with the Microsoft Message Analyzer tool.

With this tool you can now trace not only network traffic, like you only could do with the network analyzer tool, but also many other trace datasources. One of them is also OMS. Yes you hear it right. You can now analyse your OMS query’s using the Message Analyzer tool !

Here’s a short howto:

Download the Message Analyzer tool from:

http://www.microsoft.com/en-us/download/details.aspx?id=44226

 

Install and start it.

 

Now press the “New Session” button.

Now select the OMS datasource

Logon into you AZURE account.

 

YOU will need to have an active AZURE subscription !!!

Select the correct Azure subscription and Workspace.

 

Now in de query box you can specify the search query like you would do in the OMS Log search.

 

For this demo I use “*” to get all records.

 

Press Apply

After a couple of seconds the OMS records will be displayed. Now you can select 1 record and see all the properties filed and values.

 

At this time the results are limited by 10. Maybe later on it will be changed.

 

Happy OMS’ing!

Michel Kamp

 

 

 

[OMS][TIP] Graph Grouping

14 Sep

 

Something I noticed.

In OMS when you are making search query’s you can use the BY command to group. When you specify multiply group columns and use the INTERVAL to generate a graph you will also get a nice feature exposed.

In the legend you can now select the lines you want to see by grouping. This could be very handy.

See picture below:

 

Drawback

 

One drawback when using multiply groups. If you use this query also in a custom view you will lose the legend. But this legend is useless anyway since the view space is too little to make it readable.

 

 

Happy SCOM’ing

Michel Kamp

[OMS] Complete Hidden and Available Solutions List

14 Sep

Hi here a short post.

I was doing some research work and noticed in one of my web traces that there are a lot more Intelligence Packs (aka Solutions) that are available but not shown on the solution gallery site.

Here below the list, focus on the Gallery Invisible column, if it’s True then it is real hidden but may come soon. 😉

Name Description Available Visible Gallery Invisible
Capacity Planning Calculates current and future utilization of each component of your environment. True True True
Security and Audit Provides the ability to explore security related data and helps identify security breaches. True True False
System Update Assessment Identify missing system updates across your servers. True True False
Antimalware Assessment View status of antivirus and antimalware scans across your servers. True True False
Log Management Configure and manage Windows Events that you want to collect and upload to Operations Management Suite. True True True
Change Tracking Track configuration changes across your servers. True True False
SQL Assessment Assess the risk and health of SQL Server environments. True True False
SCOM Assessment Assess the risk and health of System Center Operations Manager Server environments. False True False
SQL Assessment Premier Assess the risk and health of SQL Server environments. True True True
SharePoint Assessment Premier Assess the risk and health of SharePoint Server environments. True True True
AD Assessment Assess the risk and health of Active Directory environments. True True False
AD Assessment Premier Assess the risk and health of Active Directory environments. True True True
Premier Solution Pack Add or remove solutions that are only available to premier customers. True True True
Alert Management View your Operations Manager and OMS alerts to easily triage alerts and identify the root causes of problems in your environment. True True False
MDS Provides data collection services from MDS for internal Microsoft engineers. True False True
Data Visualizer Provides insight into data allowing for customized data visualizations and log search analytics for internal Microsoft engineers. True True True
Configuration Assessment Identify configuration problems across your servers. True True True
Azure Automation Automate time consuming and frequently repeated tasks in the cloud and on-premises. True True False
Wire Data Provides the ability to explore wire data and helps identify network related issues. False True False
Azure Site Recovery Monitor virtual machine replication status for your Azure Site Recovery Vault. True True False
Backup Manage Azure IaaS VM backup and Windows Server backup status for your backup vault. True True False
Surface Hub Provides the ability to monitor Microsoft Surface Hub devices. True True False
Network Performance Monitor (Preview) Offers near real time monitoring of network performance parameters like loss and latency. True True False
Containers See Docker container performance metrics and logs from containers across your public or private cloud environments. True True False
Application Dependency Monitor Automatically discover and map servers and their dependencies in real-time. False True False
Azure Networking Analytics (Preview) Gain insight into your Azure Network Security Group and Application Gateway logs True True False
AD Replication Status Identify Active Directory replication issues in your environment. True True False
Office 365 (Preview) Get full visibility into your Office 365 user activities perform forensics as well as audit and compliance True. True False
Upgrade Analytics (Preview) Use a data-driven approach to streamline and accelerate Windows upgrades. True True False
Key Vault (Preview) Understand your Key Vault usage through Analysis of Key Vault logs True True False
Service Fabric Identify and troubleshoot issues accross your Service Fabric cluster False True False
DDI Analytics Provides security performance and operations related insights into DNS DHCP and IP address infrastructure False
Application Insights Connect Application Insights Accounts and leverage your visibility across applications. True True True
Wire Data 2.0 Provides the ability to explore wire data and helps identify network related issues. False True False
Update Analytics (Private Preview) View security update compliance and feature update status across all of your Windows 10 devices. False True True
Agent Health The Agent Health solution gives customers insight into the health performance and availability of their agents (both Windows and Linux agents). True True False
MLRecommendation Unavailable False False False

Happy OMS’ing

Michel Kamp

[Workaround] OMS View Designer Pitfall alias Bug ?

5 Jul

 

In my last post I warned you for a design time issue when using the “Data-flow verification” on the Tile. (https://michelkamp.wordpress.com/2016/07/05/oms-view-designer-pitfall-alias-bug/ )

Now because I was of course myself hit by this and afraid losing my just designed dashboard I looked for a way to just open it behind the screen.

And I found a workaround.

Steps to take:

Open the OMS home Page

 

Now press F12 (using IE)

And (1) select the DOM Explorer. Now (2) and (3) select your custom designed View / dashboard and copy the GUID (4)

 

 

Now copy the URL form the current OMS page (1)

 

Edit the URL as below:

Replace the GUID after ?Solutionid= with the GUID you got from above step (4)

https://e1a1111-1d01-101a-1111-11ef1111c1cf.portal.mms.microsoft.com/?returnUrl=%2f#Workspace/overview/solutions/details/index?solutionId=11111f1e-7e1d-1c1f-1afc-1b1e11ebc11b&_timeInterval.intervalDuration=604800

Open a new IE tab

And paste this new URL above. And yes you are in !!!! Now first to do is to disable the Data-flow verification feature and save the dashboard.

Happy OMS’ing

Michel Kamp

Touching SCOM

https://michelkamp.wordpress.com