azure

.NET Core 128kb File size limit deployed to Azure App Service

岁酱吖の 提交于 2021-02-19 04:11:03
问题 I have a .NET Core 2.0 web app running on an Azure App Service instance. When I try to upload a file using file.CopyToAsync() , the upload fails with no diagnostic output if the file is larger than 128kB. Some photo types like png just get chopped at 128kB, even when they're several mB in size. When I try running locally, I can upload much larger files into my wwwroot/etc... folder on my local machine, so the problem seems specific to Azure App Services. I've looked up documentation on file

.NET Core 128kb File size limit deployed to Azure App Service

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-19 04:10:25
问题 I have a .NET Core 2.0 web app running on an Azure App Service instance. When I try to upload a file using file.CopyToAsync() , the upload fails with no diagnostic output if the file is larger than 128kB. Some photo types like png just get chopped at 128kB, even when they're several mB in size. When I try running locally, I can upload much larger files into my wwwroot/etc... folder on my local machine, so the problem seems specific to Azure App Services. I've looked up documentation on file

Service Fabric Cluster status “Upgrade service unreachable”

天大地大妈咪最大 提交于 2021-02-19 03:16:23
问题 I Had SF cluster made of 3 Standard A0 nodes. I scaled cluster in to 1 node and understood that this was bad idea because nothing was working in this state (even SF explorer was not working) Then I scaled it out back to 3 nodes and restarted Primary scaleser. Now all nodes in scaleset are up and running but SF cluster status is "Upgrade service unreachable". I saw similar question Service Fabric Status: Upgrade service unreachable where was recommended to scale nodes up to D2 but this hasn't

Service Fabric Cluster status “Upgrade service unreachable”

╄→尐↘猪︶ㄣ 提交于 2021-02-19 03:16:19
问题 I Had SF cluster made of 3 Standard A0 nodes. I scaled cluster in to 1 node and understood that this was bad idea because nothing was working in this state (even SF explorer was not working) Then I scaled it out back to 3 nodes and restarted Primary scaleser. Now all nodes in scaleset are up and running but SF cluster status is "Upgrade service unreachable". I saw similar question Service Fabric Status: Upgrade service unreachable where was recommended to scale nodes up to D2 but this hasn't

Programmatically getting the list of azure virtual machine sizes

允我心安 提交于 2021-02-19 03:07:55
问题 I am new to Azure management libraries for .net. How can we enumerate VM instance sizes available with respect to subscription or in general using Azure Management libraries for .Net or Rest APIs? Please suggest. 回答1: You can get a list of VM sizes for a region by calling https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/{location}/vmSizes?api-version={api-version} As documented here - List all available virtual machine sizes in a region There

Programmatically getting the list of azure virtual machine sizes

痞子三分冷 提交于 2021-02-19 03:07:28
问题 I am new to Azure management libraries for .net. How can we enumerate VM instance sizes available with respect to subscription or in general using Azure Management libraries for .Net or Rest APIs? Please suggest. 回答1: You can get a list of VM sizes for a region by calling https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/{location}/vmSizes?api-version={api-version} As documented here - List all available virtual machine sizes in a region There

Trigger azure function on user registration in b2c

旧巷老猫 提交于 2021-02-19 02:59:06
问题 I want to trigger a function when a user registers in my azure AD B2C. But I can't find any examples on this. Is the user added to any queue or stored in any table? Or do I need to look at the respons back when the user clicks the "register" button in my app? I followed this guide to create my B2C. What I want is to eg. send a welcome mail. 回答1: Azure AD B2C does not have any support for custom emails events or custom triggers through its built-in policies. However, you can use Azure AD B2C

Permissions error when attaching Azure Disk to AKS pod

烂漫一生 提交于 2021-02-19 02:56:09
问题 I've been battling this error for a few hours now. Found several articles but nothing that has helped so far. My work has been based on the "How-to guide > Configure data volumes > Azure Disk - Static" from https://docs.microsoft.com/en-us/azure/aks/azure-disk-volume. As far as I can tell, I've not missed any steps. I have defined by config in a YAML file as so: kind: Deployment metadata: name: phio-dep-db namespace: production spec: selector: matchLabels: app: phio replicas: 1 strategy: type

How to set a secret in Azure Key Vault from a local asp.net application

帅比萌擦擦* 提交于 2021-02-19 02:49:08
问题 I have a local asp.net core 3.1 application that I want to set a secret in an Azure Key Vault. The following is the code I used from Microsoft: string secretName = "xxSecret"; string keyVaultName = Environment.GetEnvironmentVariable("KEY_VAULT_NAME"); var kvUri = "https://" + keyVaultName + ".vault.azure.net"; var secretClient = new SecretClient(new Uri(kvUri), new DefaultAzureCredential()); string secretValue = "test"; secretClient.SetSecret(secretName, secretValue); KeyVaultSecret secret =

Where to store the JSON file which will be referenced for the environment variable in asp.net hosted on Azure

纵饮孤独 提交于 2021-02-19 02:39:43
问题 I have created a Web Service using ASP.NET and will be storing data in Firestore. Hence, I will need to set the GOOGLE_APPLICATION_CREDENTIALS environment variable referring to a JSON file. This works locally on my machine, but it doesn't work when it's published to Azure. The problem is I couldn't find the JSON file to locate the file path, I have double checked my local project folder whether the JSON file is in there before publishing. May I know where is the best place to store my JSON