Solved

Desired State Configuration in Azure

Posted on 2016-11-04
3
52 Views
Last Modified: 2016-11-07
I am having trouble making sense of this error message (as I try to convert the cmdlets to ARM from this article: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-extensions-dsc-overview/)

I get stuck at:
Set-AzureRMVMDscExtension -ResourceGroupName 'blahblah' -VMName $demovm -ArchiveBlobName 'blahblah.ps1.zip' -ArchiveStorageAccountName 'blahblah' -Version '1.0'

Set-AzureRMVMDscExtension : The Resource 'Microsoft.Compute/virtualMachines/Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine' under resource
group 'blahblah' was not found.

Any ideas?

Thanks!
0
Comment
Question by:K B
3 Comments
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 41874490
Removed "MS Excel" Topic.
Removed "VB Script" Topic.
0
 
LVL 39

Accepted Solution

by:
footech earned 500 total points
ID: 41874689
I'm guessing (because I haven't actually used the cmdlet), but make try making sure that $demovm is just a string with the VM name, not the actual object returned by Get-AzureRMVM cmdlet.
0
 
LVL 6

Author Closing Comment

by:K B
ID: 41877602
Correct!
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now