Adding ResourceManager modules in Azure automation

Source: Internet
Author: User

Recent attempts to control the VM's timed switch via automation in Azure, find an article on the Web, and follow the article to the 6th step of the Import Azure Resource Manager module, you need to import a " Azureresourcemanager.zip "file, but this file is not found on the current page.

In order to load this file, check the data to do the test, before and after two or three days, fortunately finally is successful, here to make a record memo.

1. Where to find this azureresourcemanager.zip file?

After Azure Poweshell is installed, the default is C:\Program Files (x86) \microsoft Sdks\azure\powershell\ There will be a Azureresourcemanager directory under the ResourceManager directory. You can compress this file into Azureresourcemanager.zip.

2. How do I add it as a Auzre automation module?

Method One: On the traditional azure portal, open the Automation account, select the lower import module, and then select the zip file that you just generated to commit.

Method Two: On the new Azure portal, turn on the Automation management account--assets--module.

Then select "Add Module"

Select the previously generated zip file for submission.

Method Three: Use Azure Powershell

New-azureautomationmodule–automationaccountname < created a good automation account name >–contentlink

With PowerShell, you need to upload the Azureresourcemanager.zip file to a location on the web in advance, such as saving it to azure storage and setting it up for public download.

e.g. New-azureautomationmodule–automationaccountname Vmautoshutdown–contentlink https://www.eee.com/ Azureresourcemanager.zip–name Azureresourcemanager–resourcegroupname Vmautoshutdown

Adding ResourceManager modules in Azure automation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.