Azure PowerShell
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicros...
-戻る
--PowerShell
--[[Azureのシェル]]
---Azure PowerShell
---[[Azure Cloud Shell]]
---[[Azure CLI]]
*目次 [#r686779a]
#contents
*概要 [#jab2a910]
-Azure Subscriptionの管理で、そろそろ必要になったので。
-[[Azure Resource Manager (ARM)]]モデルを使う一連のコマン...
*詳細 [#zb9b4b36]
**準備 [#ldae3e58]
[[Azure Cloud Shell]]なら準備は不要。
***インストール [#m3b29bfc]
-[[ver7>PowerShell#ibc8b5fb]]をインストール
-アップデート
>Update-Module
-アンインストール
>Uninstall-Module Azure
>Uninstall-Module AzureRM
-Az
--インストール
>Install-Module -Name Az -AllowClobber
--アップデート
>Update-Module -Name Az
--インポート
>Import-Module -Name Az
-AzAD
--インストール
>Install-Module -Name AzureAD
--アップデート
>Update-Module -Name AzureAD
--インポート
>Import-Module -Name AzureAD
***ポリシー変更 [#x63aaeab]
-変更~
管理者権限が必要
>Set-ExecutionPolicy RemoteSigned
-確認
>Get-ExecutionPolicy
RemoteSigned
**ログイン [#a7a61ee7]
-ログイン
>Connect-AzAccount
-別名が多数ある...
>Login-AzAccount
>Login-AzureRmAccount
>Add-AzureRmAccount
>Connect-AzureRmAccount
***Windows端末 [#t39a303e]
-[[OAuth 2.0 for Native Apps の Loopback Interface Redire...
***SSH端末 [#e80b19ce]
[[OAuth 2.0 Device Authorization Grant]](未検証なので多...
**サブスクリプション切替 [#afbbdf43]
***一覧 [#ea4c734f]
>Get-AzSubscription
Name Id TenantId...
---- -- --------...
xxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx XXXXXXXX...
yyyyyyyyyy yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy XXXXXXXX...
***選択 [#tbda5002]
>Set-AzContext -SubscriptionId "yyyyyyyy-yyyy-yyyy-yyyy-...
**[[プロキシ設定>PowerShell#h639929f]] [#h639929f]
*参考 [#oc75a3b2]
-[[Azure PowerShell でサブスクリプションを切り替える | Wi...
**[[PowerShell]] [#b12c518f]
**[[Azure Cloud Shell]] [#j8423885]
**[[Azure CLI]] [#id392847]
**Microsoft Docs [#z2052b99]
-Azure PowerShell の概要~
https://docs.microsoft.com/ja-jp/powershell/azure/overview
-Azure PowerShell のインストールおよび構成~
https://docs.microsoft.com/ja-jp/powershell/azure/install...
-Azure PowerShell を使ってみる~
https://docs.microsoft.com/ja-jp/powershell/azure/get-sta...
-Azure PowerShell でのログイン~
https://docs.microsoft.com/ja-jp/powershell/azure/authent...
--Azure PowerShell で Azure サービス プリンシパルを作成す...
https://docs.microsoft.com/ja-jp/powershell/azure/create-...
--PowerShell セッション間でのユーザー ログインの保持~
https://docs.microsoft.com/ja-jp/powershell/azure/context...
-Azure PowerShell による Azure サブスクリプションの管理~
https://docs.microsoft.com/ja-jp/powershell/azure/manage-...
----
Tags: [[:シェル]], [[:インフラストラクチャ]], [[:Windows]...
終了行:
「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicros...
-戻る
--PowerShell
--[[Azureのシェル]]
---Azure PowerShell
---[[Azure Cloud Shell]]
---[[Azure CLI]]
*目次 [#r686779a]
#contents
*概要 [#jab2a910]
-Azure Subscriptionの管理で、そろそろ必要になったので。
-[[Azure Resource Manager (ARM)]]モデルを使う一連のコマン...
*詳細 [#zb9b4b36]
**準備 [#ldae3e58]
[[Azure Cloud Shell]]なら準備は不要。
***インストール [#m3b29bfc]
-[[ver7>PowerShell#ibc8b5fb]]をインストール
-アップデート
>Update-Module
-アンインストール
>Uninstall-Module Azure
>Uninstall-Module AzureRM
-Az
--インストール
>Install-Module -Name Az -AllowClobber
--アップデート
>Update-Module -Name Az
--インポート
>Import-Module -Name Az
-AzAD
--インストール
>Install-Module -Name AzureAD
--アップデート
>Update-Module -Name AzureAD
--インポート
>Import-Module -Name AzureAD
***ポリシー変更 [#x63aaeab]
-変更~
管理者権限が必要
>Set-ExecutionPolicy RemoteSigned
-確認
>Get-ExecutionPolicy
RemoteSigned
**ログイン [#a7a61ee7]
-ログイン
>Connect-AzAccount
-別名が多数ある...
>Login-AzAccount
>Login-AzureRmAccount
>Add-AzureRmAccount
>Connect-AzureRmAccount
***Windows端末 [#t39a303e]
-[[OAuth 2.0 for Native Apps の Loopback Interface Redire...
***SSH端末 [#e80b19ce]
[[OAuth 2.0 Device Authorization Grant]](未検証なので多...
**サブスクリプション切替 [#afbbdf43]
***一覧 [#ea4c734f]
>Get-AzSubscription
Name Id TenantId...
---- -- --------...
xxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx XXXXXXXX...
yyyyyyyyyy yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy XXXXXXXX...
***選択 [#tbda5002]
>Set-AzContext -SubscriptionId "yyyyyyyy-yyyy-yyyy-yyyy-...
**[[プロキシ設定>PowerShell#h639929f]] [#h639929f]
*参考 [#oc75a3b2]
-[[Azure PowerShell でサブスクリプションを切り替える | Wi...
**[[PowerShell]] [#b12c518f]
**[[Azure Cloud Shell]] [#j8423885]
**[[Azure CLI]] [#id392847]
**Microsoft Docs [#z2052b99]
-Azure PowerShell の概要~
https://docs.microsoft.com/ja-jp/powershell/azure/overview
-Azure PowerShell のインストールおよび構成~
https://docs.microsoft.com/ja-jp/powershell/azure/install...
-Azure PowerShell を使ってみる~
https://docs.microsoft.com/ja-jp/powershell/azure/get-sta...
-Azure PowerShell でのログイン~
https://docs.microsoft.com/ja-jp/powershell/azure/authent...
--Azure PowerShell で Azure サービス プリンシパルを作成す...
https://docs.microsoft.com/ja-jp/powershell/azure/create-...
--PowerShell セッション間でのユーザー ログインの保持~
https://docs.microsoft.com/ja-jp/powershell/azure/context...
-Azure PowerShell による Azure サブスクリプションの管理~
https://docs.microsoft.com/ja-jp/powershell/azure/manage-...
----
Tags: [[:シェル]], [[:インフラストラクチャ]], [[:Windows]...
ページ名: