DHJJ [Hatsune's Journal Japan] blog

Hatsune's Journal Japan blog

目次

Blog 利用状況

ニュース

最新ツイート

運営サイト

Hatsune's Journal Japan
DHJJ

著作など

資格など

OCP
MCP

書庫

日記カテゴリ

わんくま同盟

[Azure]Azure PowerShellの具体例(例1:WebAppsの追加)

前準備

http://hatsune.hatenablog.jp/entry/2018/04/11/010156


Azureへのログイン

PowerShellを起動して次のコマンドを入力するとAzureへのログインダイアログが表示されます。

Login-AzureRmAccount

image27

ここでIDとパスワードを入力してサインインに成功すると対象となるサブスクリプションに接続する。

もし、複数のサブスクリプションがある場合は、サブスクリプションを指定して実行するといいでしょう。

Login-AzureRmAccount ?subscription xxxxxx-xxx-xxx-xxx-xxxx
image10


例1:WebAppsの追加

それではAzure PowerShellを使って具体的にWebAppsを新規追加する方法を順番にみていきましょう。

(1)リソースグループを新規作成する(既存のものを使うときには省略)
New-AzureRmResourceGroup ?Name myResoureceGroup ?Location ‘Japan West’

image16

これでmyResourceGroupという名前で西日本にリソースグループが作成できます。

(2)フリープランでApp Serviceプランを作成
New-AzureRmAppServicePlan -Name ’mywebapp0409' ?Location ‘Japan West’ -ResourceGroupName myResoureceGroup -Tier Free

image21

App Service プラン名が「mywebapp0409」のApp Serviceプランを西日本に作成しました。

(3)Webアプリを作成
New-AzureRmWebApp -Name ’mywebapp0409' ?Location ‘Japan West’ -AppServicePlan ’mywebapp0409’ -ResourceGroupName myResoureceGroup

App Webアプリ名が「mywebapp0409.azurewebsites.net」のWebアプリを西日本に作成しました。

(4)発行プロファイルの取得
Get-AzureRmWebAppPublishingProfile -Name ’mywebapp0409' -ResourceGroupName myResoureceGroup ?outputfile “outputfile”

image29

これでoutputfileという名前で発行プロファイルが保存できます。

image34

(5)Webソケットの有効化
Set-AzureRmWebApp ?Name 'mywebapp0409' -ResourceGroupName myResoureceGroup ?WebSocketsEnabled true

これでWebソケットが使えるようになります。

(6)アプリケーション設定
$AppSettings = @{"ClientId"="id";"Password"="pass"}
Set-AzureRmWebApp ?Name 'mywebapp0409' -ResourceGroupName myResoureceGroup ?AppSettings $AppSettings 

image

アプリケーション設定にClientIdとPasswordを設定しました。アプリケーション設定を定義することでWeb.Configに設定した設定値を書き換えることができます。

さいごに

あとはWebアプリをデプロイすればOKです。

Azureでは、デプロイオプションとしてWeb Appsへのデプロイ元が選択できます。VSTS、onedrive、ローカルGitリポジトリ、GitHub、Bitbucker、DropBoxなどから選択できます。もちろん自社内のGitを指定することも可能です。

これにはローカルgitやgithubと組み合わせてとかもできます。

Visual Studioからデプロイしてもいいでしょう。

このあたりは機会があれば、別の機会にご紹介したいと思います。

投稿日時 : 2018年4月14日 2:01

Feedback

# re: [Azure]Azure PowerShellの具体例(例1:WebAppsの追加) 2018/07/14 11:23 phoebesss

http://www.hydiapearls.com Coach Outlet Online
http://www.lumbergear.com Coach Factory Outlet
http://www.peoplesparkfilm.com Coach Factory Outlet
http://www.insite13.com Coach Outlet
http://www.artiswhyigetupinthemorning.com Coach Factory Outlet
http://www.wowinnovators.com Coach Factory Outlet
http://www.outletcoachonlinestores.com Coach Outlet Store Online
http://www.outletstorescoachonline.com Coach Outlet Store Online
http://www.chawengbayview.com Coach Factory Outlet
http://www.hamstersblog.com Coach Outlet Online
http://www.trudysfountainofyouth.com Coach Outlet Store
http://www.unpluggedtucson.com Coach Outlet Online
http://www.cpachpursesfactoryonline.com Coach Purses Outlet
http://www.factoryoutletonlinecoachstore.com Coach Factory Outlet
http://www.glamour-illustrated.com Coach Outlet Store
http://www.factoryonlinecoach.com Coach Factory Outlet

# re: [Azure]Azure PowerShellの具体例(例1:WebAppsの追加) 2018/07/31 12:34 chenyingying20180731

http://www.nikekyrie2.com
http://www.kobe11.in.net
http://www.nikeairmax90.us.org
http://www.michaelkorshandbagsmacys.us.com
http://www.outletmichaelkorsoutletonline.us.com
http://www.suprashoesclearance.us.com
http://www.nikefreeruns.us.com
http://www.nikejordans.co.uk
http://www.redbottomshoes.org.uk
http://www.lebronambassador10.us.com
http://www.lebronjamesjerseys.us.com
http://www.adidasflipflops.us.com
http://www.jordans-fusion.com
http://www.wholesale-jerseysnfl.us.com
http://www.pumafentysandals.us.com
http://www.michael-korsoutletstores.us.org
http://www.pandoracharmjewelry.us.com
http://www.balenciagashop.us.com
http://www.mbt.us.com
http://www.columbia-sportswear.us.com
chenyingying20180731に

# re: [Azure]Azure PowerShellの具体例(例1:WebAppsの追加) 2018/07/31 13:12 Xem ngay

It is so hard for me to set up this system for my company.

# re: INI 編集ツール IniModifier を作成してみる (1) 2018/08/20 12:46 chenlixiang

2018.8.20chenlixianghttp://www.adidasoutletstore.us
http://www.fossilhandbags.us
http://www.nike-roshe-run.me.uk
http://www.diorsunglasses.com
http://www.parajumpersoutlet.us.com
http://www.jordan1.us.com
http://www.ferragamobelts.com
http://www.poloralphlaurenboutique.fr
http://www.flipflop.us.com
http://www.oakley--sunglassesoutlet.us.com
http://www.adidas-trainersuk.co.uk
http://www.converse.us.org
http://www.ferragamo.org.uk
http://www.niketnrequinpascher.fr
http://www.montre--pascher.fr
http://www.sac-michaelkors-pascher.fr
http://www.christianlouboutin-outlet.in.net
http://www.beatspills.us.com
http://www.christian--louboutin.net
http://www.lunette-oakley.fr
2018.8.20chenlixiangコメント

# leilei123 2018/08/29 16:57 leilei3915

2018829 leilei3915コメント

http://www.michaelkorsoutletk.us.com
http://www.ralphlauren-saleclearance.org.uk
http://www.oakleysunglasseswholesalec.us.com
http://www.katespadehandbagsinc.us.com
http://www.manoloblahnik.us.org
http://www.ferragamoshoessale.us.com
http://www.longchampoutletonlinestore.us.org
http://www.redbottomsshoes.us.org
http://www.uggoutletstores.ca
http://www.coachoutletonlineoutlet.us.com
http://www.valentinooutletstore.us.com
http://www.coachfactoryoutlet.com.co
http://www.coachoutletstoreonlines.com.co
http://www.michaelkorsoutlet-clearance.in.net
http://www.canadagooseoutletshop.us.com
http://www.nikeshoesuk.co.uk
http://www.michaelkorsoutletsclearance.us.com
http://www.true-religion.us.com
http://www.katespadeonlineoutlet.us.org
http://www.christianlouboutinoutletinc.us.com
http://www.michaelkorsoutletpro.us.com
http://www.pandoraoutletstores.us.com
http://www.coachoutletfactorysale.us.com
http://www.ugg-bootsstores.us.com
http://www.pandoraoutletonlines.us.com
http://www.uggcanada.ca
http://www.coachfactoryoutletstore.us.org
http://www.mulberryhandbagss.co.uk
http://www.louboutinshoesoutlet.us
http://www.fitflops-saleclearance.us

# re: [Azure]Azure PowerShellの具体例(例1:WebAppsの追加) 2018/10/19 18:38 dongdong8

http://www.fitflopss.us.com
http://www.ferragamooutlet.us.com
http://www.ralphlaurensale.org.uk
http://www.uggstore.us.com
http://www.uggbuys.com
http://www.katespadehandbagssale.us.com
http://www.salvatoreferragamo.in.net
http://www.babyuggs.us.com
http://www.adidasflipflops.us.com
http://www.uggfactoryoutletstore.us.com
http://www.marceloburlon.us.com
http://www.nikesb.in.net
http://www.supra.us.org
http://www.uggformen.us.com
http://www.michaelkorsoutletcheapest.us.com
http://www.prada.us.org
http://nike.outletstore.us.com
http://www.uggclearance.us.com
http://www.pandora-jewelry.name
http://www.viscontipens.us.com
http://www.mikimotojewelry.com
http://www.suprashoesclearance.us.com
http://www.vansshoes.us.org
http://www.thenorthfacecom.us.com
http://www.ralphlauren.in.net
http://www.uggoutletsofficial.us.com
http://www.omegawatches.us.org
http://www.michael-korstaschen.ch
http://www.cheapnfljerseysnike.us.com
http://www.michaelkorsoutlet70off.us.com
http://www.cheapnhljerseysshop.us.com
http://www.jordanretro.us
http://www.airmax1.us
http://www.baseballbats.us.com
http://www.nikesshoes.us.com
http://www.uggbootsonsale65off.us.com
http://www.coachoutletfactoryofficial.us.com
http://www.airmax97.org
http://www.leejeans.us.com
http://www.burberrysale.us.org
http://www.camisetasdefutbolbaratases.es
http://www.oakleysunglassewholesale.us.com
http://www.ray-banssunglasses.org.uk
http://www.persolsunglasses.us.com
http://www.adidasyeezy350boost.us.com
http://www.y3shoes.us.com
http://www.pandoraukcharms.co.uk
http://www.oakley-vaultsunglasses.us.com
http://www.michaelkorsshandbags.us.com
http://www.airjordanretro.fr
http://www.uggsofficialsite.in.net
http://www.raybansunglassesoutlet.net.co
http://www.flipflops.me.uk
http://www.uggsales.us.com
http://www.truereligionsale.com.co
http://www.maxairnike.us.com
http://www.flops.us.com
http://www.vans.us.org
http://www.jordan5.us
http://www.oakleysunglassescanada.ca
http://www.russellwestbrook.us.com
http://www.mauijimsunglasses.us.com
http://www.soldier11.com
http://www.malone-souliers.org
http://www.thehundredsclothing.com
http://www.jordan3.net
http://www.nikefree.net
http://www.nikekd10.us.com
http://www.toryburchhandbags.us.org
http://www.airmaxnl.nl
http://www.beatsbydrdresolo.us
http://www.adidasultra-boost.us.com
http://www.nikeoutletus.us.com
http://www.shopbasketballshoes.us.com
http://www.outletuggsale.us.com
http://www.nikekd8.com
201810.19wengdongdong

# dongdong8 2018/11/21 13:45 wengdongdong053@outlook.com

http://www.kobe11.in.net
http://www.adidasstoreuk.me.uk
http://www.cheapnfljerseysfree.us.com
http://www.huarache.us.com
http://www.nikeuktrainers.me.uk
http://www.yoga-pants.us.com
http://www.adidasoutletadidas.us.com
http://www.coachhandbagsfactoryoutletonline.us.com
http://www.lebron13.org
http://www.manoloblahnikshoes.us.com
http://www.coachoutletstoreonlineclearances.us.org
http://www.vetementsclothing.com
http://www.nikeoff.com
http://www.ralphlaurens.fr
http://www.northfaceoutlet.us.com
http://www.coachonline.us.org
http://www.nikeairforce1.net
http://www.rayban.net.co
http://www.nikeoutletstoreonline.us.com
http://www.nikeblazer.fr
http://www.levisjeans.us.com
http://www.pandorajewelrysoutlet.us.com
http://www.tory-burchshoes.us.com
http://www.cartierjewelry.us.com
http://www.swarovskirings.us.com
http://www.tiffanyjewelrybracelet.us.com
http://www.toryburchsandals.us.com
http://www.lululemon.in.net
http://www.nikestores.us
http://www.suprashoesclearance.us.com
http://www.mkpurse.us.com
http://www.kanyeyeezyshoes.us.com
http://www.uggbootsonsale75off.us.com
http://www.michaelkors.org.uk
http://www.underarmouroutletclearance.com
http://www.ralphlauren-poloshirts.me.uk
http://www.jordan8.net
http://www.uggsaustralia.in.net
http://oakley.sunglassesoutlet.us
http://www.canadagoose-sale.ca
http://www.taghuer.us.com
http://www.camisetasdefutbolbaratases.es
http://www.adidasnmdoutlet.us.com
http://www.tomfordsunglasses.us.com
http://www.canada-goosejacket.ca
http://www.coachoutletonlinestore.ca
http://www.skecherssandals.us.com
http://www.nobisjackets.us.com
http://www.michaelkorsoutletcheapest.us.com
http://www.newbalanc.in.net
http://www.uggforkids.us.com
http://www.converseshoesoutlet.us.com
http://www.ray-banssunglasses.org.uk
http://www.uggfactoryoutletstore.us.com
http://www.adidasjeremyscott.in.net
http://www.miumiusunglasses.com
http://www.michaelkorsoutletonsale.us.com
http://www.pradahandbagsoutlet.us.com
http://www.katespadehandbagsoutlet.us.org
http://www.stephen-curryshoes.us.com
http://www.shopbrandbelts.com
http://www.outletcanadagoosesale.us.com
http://www.nikemercurial.us
http://www.spaldingbasketball.us
http://www.arcteryxsclothing.us.com
http://www.truereligionoutletjeans.us
http://www.coachoutletstoreonlineofficial.us.com
http://www.uggstores.us.com
http://www.newbalancesandals.us.com
http://www.swarovskijewelryoutlet.us.com
http://www.shoecarnival.us.com
http://www.michaelkorsoutlet70off.us.com
http://www.cheapjordansshoes.in.net
http://www.nikeoutletus.us.com
http://www.uggsboots.org
http://www.longchampoutlet-store.us.com
http://www.viscontipens.us.com
http://www.juicycoutureoutlet.us.com
http://www.coachcom.us.com
http://www.mooseknucklesjackets.us.com
http://www.wholesaleoakleysunglasses.us.org
http://www.adidaswings.name
http://www.macmakeup.org.uk
http://www.nikelunarglide.us
http://www.audemarspiguet.us.com
http://www.coachoutletstore.eu.com
http://www.pandorajewelry-canada.ca
http://www.hardenvol2.us.com
http://www.supreme-newyork.com
http://www.balenciagashop.us.com
http://www.linksoflondonuk.me.uk
http://www.uggsstoreoutlet.us.com
http://www.adidasoutlets.org
http://www.balenciaga-triples.us.com
http://www.coachoutletonline-sale.us.com
http://www.underarmourshoes.in.net
http://www.nikedunksb.us
http://www.supremeclothing.us.com
http://www.katespade-outlet.in.net
http://www.newcoachoutlet.us.com
http://www.longchampsacsoldes.fr
http://www.mulberryhandbags.us.com
http://www.nikeshox.in.net
http://www.nikeairmax.us.org
http://www.michaelkorsoutletsoff.us.com
http://www.monsterheadphones.us.com
http://www.fitflopsoutlet.us.com
http://www.omega.in.net
http://www.cheapnfljerseys.in.net
http://www.airforce1.in.net
http://www.canadagoosejacketsonsale.us.com
http://www.christianlouboutinsoutlet.us.com
http://www.tevasandals.us.com
http://www.raybansunglassesoutlet.net.co
http://www.woolrichjackets.us.com
http://www.kevindurantshoes.us.com
http://www.tiffanyandcojewelry.us.com
http://www.nikekd10.us.com
http://www.burberrysale.us.org
http://www.burberry-outlet-stores.us.com
http://www.coachfactoryoutlet-online.eu.com
http://www.onitsukatigershoes.us.com
http://www.pelikanpens.us.com
http://www.uggbuys.com
http://www.x-largeclothing.com
http://www.uggssaleoutlet.org
http://www.russellwestbrook.us.com
http://www.montblanccom.us.com
http://www.hermesoutlets.us.com
http://www.outletsuggstores.us.com
http://www.uggboots.mex.com
http://www.stephcurryjerseys.com
http://www.soccerjersey.eu
http://www.russellwilsonjerseys.us
http://www.victoriassecret.us.com
http://www.ralphlaurenjeans.us
http://www.converseshoes.us.org
http://www.fila.us.com
http://www.lebronjamesjerseys.us.com
http://www.raybansunglassesoutlet.co.uk
http://www.pandorajewelry.us.org
http://www.uggoutletstore.us.org
http://www.airmax1.us
http://www.coach-factoryonline.us.org
http://www.supremeclothing.me.uk
http://www.jordan6.net
http://www.jordan4.net
http://www.christianlouboutinshoessale.org.uk
http://www.adidasyeezy350.us.com
http://www.stuartweitzmanshoes.us.com
http://www.cheapmichaelkorshandbags.us.org
http://www.converse.me.uk
http://www.adidasflipflops.us.com
http://www.thenorthfacejackets.us.org
http://www.nikeairmax90.us.org
http://www.nfl-jersey.in.net
http://www.ralphlaurenfactorystore.us.com
http://www.nikeairmax90.com.de
http://www.nikeepicreactflyknit.us.com
http://www.dansko.us.com
http://www.mauijimsunglasses.us.com
http://www.christianoronaldojersey.com
http://www.supremeparis.fr
http://www.airjordan-14.us
http://www.adidasoutletstores.com
http://www.nikeshoesnike.us.com
http://www.oakleysunglasses.ru
http://www.pandorajewelrycanada.ca
http://www.fitflopss.us.com
http://www.vans.us.org
http://www.versaceclothing.com
http://www.outletmichaelkorsoutletonline.us.com
http://www.lightup-shoes.us.com
http://www.redbottoms.us.org
http://www.uggbootsshop.com
http://www.nhl-hockeyjerseys.us.com
http://www.ralph-laurenpolouk.org.uk
http://www.maccosmetics.org.uk
http://www.cheapsoccerjersey.us.com
http://www.fingerlingsmonkey.org
http://www.hollisteroutlet.us.org
http://www.soldier11.com
http://www.yeezydesertrat500.us.com
http://www.adidassuperstarshoes.us.com
http://www.adidasslides.us.com
http://www.versacebags.us.com
http://www.ralphlaurensale.org.uk
http://www.maillotdefootfrance.fr
http://www.uggs-bootsoutlet.us.com
http://www.louboutinoutlets.us.com
http://www.uggbootssale.in.net
http://www.uggsofficialsite.in.net
http://www.adidasyeezy350boost.us.com
http://www.lebron15.us.org
http://www.babyuggs.us.com
http://www.airmax95.us.org
http://www.jordans.in.net
http://www.ralplaurenuk.org.uk
http://www.burberryoutlet.com.co
http://www.fitflopssale.org.uk
http://www.uggsslippers.us.org
http://www.coachoutlet-factory.us.com
http://www.timberlandoutlet.us.org
http://www.christianlouboutinoff.us
http://www.lebronambassador10.us.com
http://www.jordan-femmepascher.fr
http://www.northfaceoutletstore.us.org
http://www.cheapbestnbajerseys.us.com
http://www.air-jordanpascher.fr
http://www.ray-bansunglassesoutlet.com.co
http://www.louboutins.me.uk
http://www.wwwnorthface.us.com
http://www.nikehyperdunks.com
http://www.beatsbydrdresolo.us
http://www.nikeflightbonafide.us
http://www.coachoutlet.net.co
http://www.ferragamooutlet.us.com
http://www.burberryoutlet-canada.ca
http://www.airjordan.me.uk
http://www.raybansunglassesforwomen.us.com
http://www.truereligion-jeans.us
http://www.pumasoutlet.us.com
http://www.hervelegerdresses.us.com
http://www.fussballtrikotsshop.de
201811.21wengdongdong

# re: [Azure]Azure PowerShellの具体例(例1:WebAppsの追加) 2019/04/02 12:14 qqq

http://www.adidasultra-boost.us.com
http://www.coachfactoryonlineoutlet.com.co
http://www.nikeshoes.us.com
http://www.coachoutletstoreonlineclearances.in.net
http://www.fitflopsoutletsale.com
http://www.atlantafalconsjersey.us
http://www.balenciagasneaker.us.com
http://www.converseshoes.us.com
http://www.katespade.in.net
http://www.uggbootsclearance.net.co
http://www.foampositeshoe.net
http://www.timberlandboots.us
qqq

# Adidas Yeezy 2019/04/06 1:12 lsngyixio@hotmaill.com

qiawseivo,If you want a hassle free movies downloading then you must need an app like showbox which may provide best ever user friendly interface.

# Nike Air Vapormax Plus 2019/04/14 9:40 ymovroxob@hotmaill.com

xjhzscd,A very good informative article. I've bookmarked your website and will be checking back in future!

# Adidas Yeezy 500 2019/04/18 12:56 lorohhh@hotmaill.com

“The capitalist countries must have a strong force from the highest leadership, and declare the income\/wealth/opportunity gap is a national emergency and assume the responsibility of redesigning the system so that it can function better.

# Pandora Jewelry 2019/04/19 6:31 vptrwsh@hotmaill.com

cyeemdhhisd,Definitely believe that which you said. Your favourite justification appeared to be on the net the simplest thing to remember of.

# Yeezy 2019/04/22 7:44 mzxzgsw@hotmaill.com

The unforgettable tale of the NBA banning the black and red colorway in 1985 has served as the backbone to Jordan Brand’s entire approach to storytelling behind footwear. Over the years, we’ve seen the infamous color combo make its return in various forms,

# Nike Air Zoom 2019/04/30 7:40 babptwqe@hotmaill.com

After Westbrook scores on a player, he often gets animated, shouting and showing up opponents, and this series was no exception.

# Air Jordan 12 Gym Red 2019/05/05 3:53 lvbbjgzra@hotmaill.com

They had a very productive conversation about keeping the media platforms open for 2020,” said adviser Kellyanne Conway Wednesday morning. “The president is very concerned about what he sees as losing followers or people being blocked for certain actions. That’s obvious.

# NFL Jerseys Cheap 2019/05/06 3:38 bqqhejy@hotmaill.com

I spent one night in the hospital, was home the next day and got some rest and came in today, Saban told TideSports.com. I’ve got a lot of work to do.

# Yeezy Boost 350 2019/05/07 4:16 cylsfmotaa@hotmaill.com

A black outsole then completes the look. These new summer-ready Yeezys retail for $300 USD and will be available on April 27th, so check a full store list below to see where you can get a pair.

# Nike Outlet 2019/05/09 4:31 shtbipnm@hotmaill.com

"We also issued a blanket order that asked anyone who had been in the library, on 4/11 between 11 and 3 to self-quarantine, notify health services and establish that they were immune before they exposed themselves to the public," said Barbara Ferrer, Los Angeles County's public health director.

# Yeezy 700 2019/05/30 22:59 qetitdvdoo@hotmaill.com

http://www.cheapsportsnfljerseys.us/ Cheap Sports Jerseys

# Travis Scott Air Jordan 1 2019/05/31 1:01 rmgqtyei@hotmaill.com

But that's where they are as they approach Game 6 against the Clippers,Jordan who have lost three of the first five games but never once shown any sign of surrender.

# React Element 87 2019/06/03 9:54 wcarxcy@hotmaill.com

http://www.nikefactoryoutletstoreonline.com/ Nike Outlet store

# nike factory outlet 2019/06/16 6:29 clrnzcvmmoj@hotmaill.com

http://www.basketball-jersey.us/ Basketball Jersey

タイトル  
名前  
Url
コメント