Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some fixes related to standup up test setup #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 6 additions & 27 deletions azure_infra/azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ az network nsg rule create \
--resource-group $RESOURCE_GROUP \
--nsg-name TraheyNettestNSG \
--name myNSGRuleHTTP \
--protocol '*' \RESOURCE_GROUP=TraheyNetTest
--protocol '*' \
--priority 204
LB_NAME=TraheyNetTestLB
az group create --name TraheyNetTest --location westus

Expand Down Expand Up @@ -116,39 +117,17 @@ az network nsg rule create \
--access allow \
--priority 200


az network public-ip create \
--resource-group $RESOURCE_GROUP \
--name TraheyNettestBastionIP \
--sku Standard

az network vnet subnet create \
--resource-group $RESOURCE_GROUP \
--name TraheyBastionSubnet \
--name AzureBastionSubnet \
--vnet-name NetTest \
--address-prefixes 10.1.1.0/27


--direction inbound \
--source-address-prefix '*' \
--source-port-range '*' \
--destination-address-prefix '*' \
--destination-port-range 80 \
--access allow \
--priority 200


az network public-ip create \
--resource-group $RESOURCE_GROUP \
--name TraheyNettestBastionIP \
--sku Standard

az network vnet subnet create \
--resource-group $RESOURCE_GROUP \
--name AzureBastionSubnet \
--vnet-name NetTest \
--address-prefixes 10.1.1.0/27

az network bastion create \
--resource-group $RESOURCE_GROUP \
--name TraheyBastionHost \
Expand All @@ -171,12 +150,12 @@ az vm create --resource-group $RESOURCE_GROUP \
--name myVM1 \
--nics myNicVM1 \
--image Canonical:0001-com-ubuntu-server-jammy:22_04-lts-gen2:latest \
--admin-username unsructured \
--admin-username unstructured \
--user-data ./start-service-init.sh \
--size Standard_D8s_v5 \
--ssh-key-values ~/.ssh/id_ed25519.pub

array=(myNicVM1)
array=("myNicVM1")
for vmnic in "${array[@]}"
do
az network nic ip-config address-pool add \
Expand All @@ -201,4 +180,4 @@ az network nat gateway create \

az network vnet subnet update --resource-group $RESOURCE_GROUP --vnet-name NetTest --name NetTestBackendSubnet --nat-gateway TraheyNettestNATgateway

az network public-ip show --resource-group $RESOURCE_GROUP --name TraheyNetTest --query ipAddress --output tsv
az network public-ip show --resource-group $RESOURCE_GROUP --name TraheyNetTest --query ipAddress --output tsv