国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)

這篇具有很好參考價(jià)值的文章主要介紹了【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

【簡介】

Azure Functions 函數(shù)應(yīng)用是運(yùn)行在Azure云端的輕量級,可重用的代碼應(yīng)用,Azure Functions 可讓我們編寫更少的代碼、維護(hù)更少的基礎(chǔ)架構(gòu)并節(jié)省成本,通過使用Azure Functions 函數(shù)應(yīng)用我們無需關(guān)心服務(wù)器或底層運(yùn)維設(shè)施,我們只需要關(guān)注代碼的編寫和業(yè)務(wù)本身即可,本篇文章主要通過分享如何利用Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)操作

【前期文章】

【Microsoft Azure 的1024種玩法】一.一分鐘快速上手搭建寶塔管理面板
【Microsoft Azure 的1024種玩法】二.基于Azure云平臺的安全攻防靶場系統(tǒng)構(gòu)建
【Microsoft Azure 的1024種玩法】三.基于Azure云平臺構(gòu)建Discuz論壇
【Microsoft Azure 的1024種玩法】四. 利用Azure Virtual machines 打造個(gè)人專屬云盤,速度吊打某云盤
【Microsoft Azure 的1024種玩法】五.基于Azure Cloud Shell 一站式創(chuàng)建Linux VM
【Microsoft Azure 的1024種玩法】六.使用Azure Cloud Shell對Linux VirtualMachines 進(jìn)行生命周期管理
【Microsoft Azure 的1024種玩法】七.Azure云端搭建部署屬于自己的維基百科
【Microsoft Azure 的1024種玩法】八. 基于Azure云端輕松打造一款好用的私有云筆記
【Microsoft Azure 的1024種玩法】九. Microsoft Azure云端輕松構(gòu)建部署PostgreSQL數(shù)據(jù)庫
【Microsoft Azure 的1024種玩法】十. 基于Azure App Service 快速上手部署 ASP.NET Web 應(yīng)用
【Microsoft Azure 的1024種玩法】十一.手動(dòng)對Azure磁盤進(jìn)行IOPS性能壓力測試
【Microsoft Azure 的1024種玩法】十二. 使用Auzre cloud 安裝搭建docker+vulhub靶場
【Microsoft Azure 的1024種玩法】十三.Azure cloud|帶你快速搭建DVWA靶場漏洞環(huán)境
【Microsoft Azure 的1024種玩法】十四.Azure DNS 在線域名委托解析操作指南
【Microsoft Azure 的1024種玩法】十五.通過Web瀏覽器對Auzre VM 服務(wù)器運(yùn)維管理
【Microsoft Azure 的1024種玩法】十六.Cobaltstrike內(nèi)網(wǎng)滲透工具在Azure Cloud中的部署使用
【Microsoft Azure 的1024種玩法】 十七.在Microsoft Azure上動(dòng)手搭建專屬私有文件同步服務(wù)]
【Microsoft Azure 的1024種玩法】 十八.快速創(chuàng)建Microsoft Azure SQL數(shù)據(jù)庫初體驗(yàn)
【Microsoft Azure 的1024種玩法】 十九.使用Azure備份服務(wù)對虛擬機(jī)快速備份
【Microsoft Azure 的1024種玩法】 二十.Azure Multi-Factor Authentication多因素驗(yàn)證最佳實(shí)戰(zhàn)
【Microsoft Azure 的1024種玩法】 二十一.利用Azure Blob Service 快速實(shí)現(xiàn)靜態(tài)網(wǎng)站托管
【Microsoft Azure 的1024種玩法】 二十二.中國區(qū)Azure Cloud 多重身份驗(yàn)證最佳實(shí)踐
【Microsoft Azure 的1024種玩法】 二十三.快速上手Azure Content Delivery Network 內(nèi)容分發(fā)網(wǎng)絡(luò)
【Microsoft Azure 的1024種玩法】二十四.通過Azure Front Door 的 Web 應(yīng)用程序防火墻來對 OWASP TOP 10 威脅進(jìn)行防御
【Microsoft Azure 的1024種玩法】 二十五.使用Azure CDN對Azure Blob 靜態(tài)托管站點(diǎn)進(jìn)行加速
【Microsoft Azure 的1024種玩法】二十六. 在Azure VM中手動(dòng)部署Windows Admin Center管理平臺
【Microsoft Azure 的1024種玩法】二十七. Azure Virtual Desktop虛擬桌面之快速創(chuàng)建配置(一)
【Microsoft Azure 的1024種玩法】二十八. 基于Azure Cloud搭建IPS入侵防御系統(tǒng)實(shí)現(xiàn)安全流量實(shí)時(shí)分析
【Microsoft Azure 的1024種玩法】二十九.基于Azure VM快速實(shí)現(xiàn)網(wǎng)絡(luò)入侵檢測 (IDS) 及網(wǎng)絡(luò)安全監(jiān)視 (NSM)
【Microsoft Azure 的1024種玩法】三十. 使用Azure Data Studio之快速上手連接管理Azure SQL 數(shù)據(jù)庫(一)
【Microsoft Azure 的1024種玩法】三十一.使用Azure Logic App 創(chuàng)建基于計(jì)劃定期執(zhí)行郵件發(fā)送的自動(dòng)化工作流
【Microsoft Azure 的1024種玩法】三十二. 利用 AzCopy來對Azure Blob Storage中的數(shù)據(jù)進(jìn)行復(fù)制遷移
【Microsoft Azure 的1024種玩法】三十三.十分鐘快速部署 Azure Kubernetes Service 群集
【Microsoft Azure 的1024種玩法】三十四.將本地?cái)?shù)據(jù)文件快速遷移到Azure Blob云存儲最佳實(shí)踐
【Microsoft Azure 的1024種玩法】三十五.在Azure Virtual machines中手動(dòng)部署Java Web
【Microsoft Azure 的1024種玩法】三十六.通過網(wǎng)絡(luò)文件系統(tǒng)NFS協(xié)議快速將Blob 存儲掛在Azure Virtual machines中
【Microsoft Azure 的1024種玩法】三十七.通過Azure Virtual Machines實(shí)現(xiàn)遠(yuǎn)程連接本地內(nèi)網(wǎng)服務(wù)器(內(nèi)網(wǎng)穿透)
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App函數(shù)應(yīng)用實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)

一.創(chuàng)建Azure virtual machine

1.配置基本的Azure VM信息(包括訂閱、資源組、實(shí)例詳細(xì)信息,管理員賬號及入站端口規(guī)則),具體配置如下所示:
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
2.配置磁盤信息(配置相關(guān)磁盤類型及加密類型)具體配置如下所示:
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
3.配置網(wǎng)絡(luò)接口信息(虛擬網(wǎng)絡(luò)、子網(wǎng)、公網(wǎng)IP、公共出入站端口等)具體配置如下所示:
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
4.配置監(jiān)視和管理
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
5.查看并創(chuàng)建虛擬機(jī)
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
6.部署完成以后,可點(diǎn)擊直接“轉(zhuǎn)到資源”
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
7.如下圖所示可以看到虛擬機(jī)資源管理頁面
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)

二.開啟Azure virtual machine定時(shí)關(guān)機(jī)

1.在左側(cè)的操作菜單中,選擇—操作—自動(dòng)關(guān)閉——將狀態(tài)由關(guān)閉改為啟用
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
2.狀態(tài)變更完畢以后,如下圖所示
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)

三.創(chuàng)建配置Azure Function App

1.在菜單中搜索“Function App” 進(jìn)入Function App資源
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
2.在Function App頁面中,點(diǎn)擊“創(chuàng)建“
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
3.按照下列各圖所示,去配置Function App
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
4.配置完畢以后,我們點(diǎn)擊“轉(zhuǎn)到資源”
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
5.為Function App開啟系統(tǒng)分配標(biāo)識
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)

四.在Azure VM中為Azure Function App 分配角色

1.找到要讓Azure Function App操作關(guān)機(jī)的Azure VM,按照下圖步驟分配角色
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
2.角色配置為:‘所有者“ 配置完畢后,點(diǎn)擊下一步
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
3.在成員中添加函數(shù)應(yīng)用,并點(diǎn)擊下一步
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
4.添加完畢以后,如下圖所示 可以看到我們加入的托管標(biāo)識
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
5.最后對角色分配的操作進(jìn)行審閱和分配
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)

五. 創(chuàng)建函數(shù)應(yīng)用并配置觸發(fā)器

1.在Azure Function App 中選擇函數(shù)—?jiǎng)?chuàng)建——開發(fā)環(huán)境:在門戶中開發(fā) 具體配置如下圖所示,配置完畢后點(diǎn)擊創(chuàng)建即可
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
2.創(chuàng)建完畢以后,如下圖概述所示
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
3.點(diǎn)擊觸發(fā)器,選擇配置觸發(fā)器的觸發(fā)時(shí)間,配置完出發(fā)時(shí)間以后點(diǎn)擊保存
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
4.在代碼+測試中來編寫Powershell代碼
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
具體代碼如下所示:

# Input bindings are passed in via param block.
param($Timer)

$subscription_Id = "Your Subscription_Id "
$tenant_Id = "Your Tenant Id "
$Resource_Name = "Web_Test_VM_RG"
$VM_Name = "demotest"

#Install-Module
#Import-Module

Select-AzSubscription -SubscriptionID $subscription_Id -TenantID $tenant_Id
Start-AzVM -ResourceGroupName $Resource_Name -Name $VM_Name

5.在代碼+測試中,配置完代碼以后,我們可以點(diǎn)擊“測試/運(yùn)行 來手動(dòng)觸發(fā)函數(shù)應(yīng)用
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)
6.手動(dòng)觸發(fā)以后,我們返回Azure VM 中的活動(dòng)日志中,可以看到當(dāng)前VM的狀態(tài)變化
【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)文章來源地址http://www.zghlxwxcb.cn/news/detail-447516.html

到了這里,關(guān)于【Microsoft Azure 的1024種玩法】三十八.通過Azure Function App實(shí)現(xiàn)對Azure Virtual Machines定時(shí)開關(guān)機(jī)的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包