azure-virtual-machine

Setting up ubuntu VM on Azure with apache

无人久伴 提交于 2019-12-12 05:41:13
问题 In Azure, I created a virtual network and then associated an Ubuntu Server virtual machine, created with Azure Resource Manager Deployment method, with the network. I then updated the associated Network Security Group and added an inbound security rule for port 80 (Source:Any, Destination:Any, Service:TCP/80). After installing Apache on the VM, I tried to access the server from my browser, but have run into a wall. I can SSH into the VM just fine, but web is a no-go, and I cannot figure out

Virtual Machine Scale Sets

大城市里の小女人 提交于 2019-12-12 05:37:58
问题 I have a test azure subscription, I have created a Virtual Machine Scale Sets. There are no errors in the scale set. How do I connect to VM's and make my server to put in a load? Can I connect with RDP to my Scale set VM's ? is this allowed? 回答1: If you create VMSS via Azure portal Marketplace, we can't add inbound NAT rules to use RDP to login the VMSS instances, we can't RDP them directly. So if you want to login those instances, we can create a new VM in the same Vnet (same Vnet can

Disconnect with Azure ACS form Local Machine

╄→尐↘猪︶ㄣ 提交于 2019-12-12 05:26:42
问题 I had pull my azure acs credentials using below command and I can communicate with kubernetes machine on Azure from my local machine az acs kubernetes get-credentials --resource-group=<cluster-resource-group> --name=<cluster-name> But Now I wanted to disconnect this connection so that my kubctl can connect with other machine , it can be local or any other machine (I am trying to connect with local). But everytime I ran kubectl command it communicate with Azure ACS 回答1: For your scenario, we

Azure-CLI Blob Storage remove multiple blobs

心已入冬 提交于 2019-12-12 04:56:23
问题 I need to remove multiple files/blobs with the Azure-CLI. But it's not officially supported. So I wrote a for-loop to remove multiple files with the az command. It's look like this: for i in `az storage blob list --container-name $BUCKET --output table | awk '{print $1}'| sed '1,2d' | sed '/^$/d'` ; do if az storage blob delete --name $i --container-name $BUCKET --output table ; then echo "Files inside the bucket (container) ${BUCKET} have been erased" else echo "Unable to erase the files

Error fetching vm list using azure cli tools

*爱你&永不变心* 提交于 2019-12-12 03:24:46
问题 I'm using azure tools on mac OS X. I did run following commands : 1. $ azure login 2. $ azure account download 3. $ azure import .publishsettings 4. $ azure account set "subscription id" But now when I run $ azure vm list it shows following error : { [Error: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.] code: 'ForbiddenError', statusCode: 403 } Error: The server failed to authenticate the request. Verify that the

Migrate classic Azure resources to new Azure resource manager

会有一股神秘感。 提交于 2019-12-12 02:51:53
问题 After switching to the new Azure portal, I see all resources of mine are listed as classic resources. I am googling around to see if it's possible to have classic VM and migrate it to ARM and just hadn't seen anything that stated it was possible. I tried deleting the class VM but keep the VHD to check if I can attach it to the ARM VM. The result said it doesn't work. Is there any way that can be used to achieve this ? 回答1: Unfortunately (and strangely!) there isn't a way to do this via the

Connect Deployment Agent to Visual Studio Online if not part of domain

笑着哭i 提交于 2019-12-11 16:41:21
问题 I'm installing the Microsoft Deployment Agent 2013 onto an Azure VM. In order to connect to my Release Management Server ( Visual Studio Online in my case ) I need to authenticate either as local system or with a custom account: So with my credentials - I am validated to use the Release Management Service, but I cannot connect with them to the Release Management Server: I, 2015/02/04, 16:50:11.245, User [ME] is system, Admin I, 2015/02/04, 16:50:11.260, Validated account to use as identity

Retrieve Azure load balancer NAT port for Azure VM in C#

夙愿已清 提交于 2019-12-11 16:14:06
问题 I have an Azure Load Balancer in front of a Azure VM Scale Set (VMSS). I also have a NAT pool configured on the Load Balancer like the following: { "name": "InstanceInputEndpointNatPool", "properties": { "backendPort": 10000, "frontendIPConfiguration": { "id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancers_01_name')), '/frontendIPConfigurations/LoadBalancerIPConfig')]" }, "frontendPortRangeStart": 10100, "frontendPortRangeEnd": 10500, "protocol": "Tcp" } }

Automate provisioning of sharepoint, biztalk like cots products to azure using terraform

安稳与你 提交于 2019-12-11 14:34:57
问题 Is it possible to automate provisioning of sharepoint, biztalk like cots products to azure using terraform? If yes, how licensing would be handled? 回答1: Is it possible to automate provisioning of sharepoint, biztalk like cots products to azure using terraform? Yes, it is possible. You could use Azure Custom Script Extension to do this. But all software need support silent installation without user intervention. 来源: https://stackoverflow.com/questions/48881795/automate-provisioning-of

it is possbile to get the cpu usage of azurevm Throught powershell like metrics

陌路散爱 提交于 2019-12-11 11:50:44
问题 how can we get cpu usage of azure vm to local machine through csv file is it possible..? example:-i would like to get current cpu usage is 50%. i am able to get single task usage example : task1=0.20 task2=6.98 but i am searching whole thing to get Can any one please help me i am able to get cpu usage in base machine "wmic cpu get loadpercentage" like the same i am trying for azure vm Thanks In Advance Giri 回答1: We can use this command to get the CPU usage: $cpu = gwmi win32_Processor