Skip to content

mattu0119/AzureStudydemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AzureStudydemo

  • App Service のネットワークACL は最大512個までしか登録できない。
$priority = 200;
$json = Invoke-RestMethod -Uri "https://api.github.com/meta"
foreach($ip in $json.actions){
    if($ip -like "*.*"){
        az webapp config access-restriction add -g AzureStudyDemo -n azurestudydemo --slot dev --rule-name $ip --action Allow --ip-address $ip --priority $priority
        Write-Output "$($ip) added to rules."
        $priority++
    }
}
  • Github Actions で利用する IP Address の確認
$json = Invoke-RestMethod -Uri "https://api.github.com/meta"
$json.actions | Where-Object {$_ -Like "*.*"} > .\actions.txt

git

git add .
git commit -m "comment"
git push origin main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published