Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Powershell script to add app to VNET integration

$subscription_id = "<Subscription_ID>"
$NetworkName = "<Network_Name>"
$location = "<Region>"
$netrgname = "<Resource_Group_VNet_is_in>"
$AppServiceName = "<AppService_Name>"
 $props = @{
      "vnetResourceId" = "/subscriptions/$subscription_id/resourcegroups/$netrgname/providers/Microsoft.ClassicNetwork/virtualNetworks/$NetworkName";
      "certThumbprint"= "<Client_cert_thumbprint>";
      "certBlob"= "<Base64_Cert_Data>";
      "routes" = $null;
      }

New-AzureRMResource -ResourceName "$AppServiceName/$AppServiceName-to-$NetworkName" -Location $location  -ResourceGroupName MarcusWebsites -ResourceType Microsoft.Web/sites/virtualNetworkConnections -PropertyObject $props -ApiVersion "2015-08-01" -force 
Comment

PREVIOUS NEXT
Code Example
Shell :: cmd install mrjob 
Shell :: pip install CaImAn 
Shell :: api uber eat node js 
Shell :: wget quier 
Shell :: butler push 
Shell :: use xargs multiple times 
Shell :: resolve symlinks mac 
Shell :: ymore command linux 
Shell :: how to mirror your phone to laptop wirelessly 
Shell :: gimp : Dépend: libgimp2.0 (= 2.10.18) mais ne sera pas installé Dépend: libgimp2.0 (<= 2.10.18-z) mais ne sera pas installé Dépend: libgegl-0.4-0 (= 0.4.22) mais ne sera pas installé 
Shell :: linux hide mouse pointer for touch 
Shell :: boot up batch script 
Shell :: fslmaths invert masking 
Shell :: fsl convert_xfm 
Shell :: save dan exit di vim 
Shell :: autologin Ubuntu 20.04 LightDM 
Shell :: Crear repo para git hub 
Shell :: staticpodpath in kuberetes 
Shell :: read file and while loop example 
Shell :: how to create tmp directories in hpc 
Shell :: install rethinkdb ubuntu 
Shell :: bios update dual boot no option to select os 
Shell :: centos 8 gui 3 
Shell :: iterm full screen cmd 
Shell :: how to set path openssl@1.1 on mac zsh 
Shell :: deploy docker on digital ocean 
Shell :: libexpat fedora 
Shell :: how to set chmod 777 to folder 
Shell :: openssl new certificate one line 
Shell :: change bash suggestions to be case insensitive 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =