$NIC = New-AzNetworkInterface -Name $NICName -ResourceGroupName $ResourceGroupName -Location $LocationName -SubnetId $ -PublicIpAddressId $PIP.Id $PIP = New-AzPublicIpAddress -Name $PublicIPAddressName -DomainNameLabel $DNSNameLabel -ResourceGroupName $ResourceGroupName -Location $LocationName -AllocationMethod Dynamic $Vnet = New-AzVirtualNetwork -Name $NetworkName -ResourceGroupName $ResourceGroupName -Location $LocationName -AddressPrefix $VnetAddressPrefix -Subnet $SingleSubnet $SingleSubnet = New-AzVirtualNetworkSubnetConfig -Name $SubnetName -AddressPrefix $SubnetAddressPrefix # Required to run a client VM with efficiency and performance # Modern hardware environment with fast disk, high IOPs performance. # It is required in order to run a client VM with efficiency and high performance. $VMLocalAdminSecurePassword = ConvertTo-SecureString "Password" -AsPlainText -Force # Credentials for Local Admin account you created in the sysprepped (generalized) vhd image OSProfile : įullyQualifiedDomainName : .com VERBOSE: Use 'mstsc /v.com' to connect to the VM. 例 例 1: 仮想マシンを作成する New-AzVM -Name MyVm -Credential (Get-Credential)
0 Comments
Leave a Reply. |