azure-storage-account

Angular App Hosting Azure Storage Container - Azure Authentication Callback and Routing fails

ぐ巨炮叔叔 提交于 2020-02-24 04:35:49
问题 I developed an Angular 8 App with NgxAdmin and hosted it as Azure Web App. It uses Azure AD Oauth2 Authentication with the help of NbAuthModule. Everything works fine. Now I tried to host the same SPA on an Azure Storage Account. I added the new callback url to the Azure Ad App Registration and updated the redirectUri in the NbOAuth2AuthStrategy.setup-method. When I call the base url of the static app ( https://<projectname>.z6.web.core.windows.net ), it correctly redirects to https://

Azure CDN with Verizon - Rewriting URL to always load index.html

微笑、不失礼 提交于 2020-01-31 02:30:27
问题 Context I've been struggling with the following problem for the last few days and due to the very nature of a CDN and the manual review of each new rule, it takes me each time up to 4h to deploy a new rule. As described in the following topic, I currently have my Angular application deployed to a storage account which has a single blob container called cdn Within the root of this blob container , the whole dist folder from my angular project has been copied via my CI setup. The CDN profile

Azure CDN with Verizon - Rewriting URL to always load index.html

与世无争的帅哥 提交于 2020-01-31 02:29:48
问题 Context I've been struggling with the following problem for the last few days and due to the very nature of a CDN and the manual review of each new rule, it takes me each time up to 4h to deploy a new rule. As described in the following topic, I currently have my Angular application deployed to a storage account which has a single blob container called cdn Within the root of this blob container , the whole dist folder from my angular project has been copied via my CI setup. The CDN profile

Azure: Assign Roles via ARM Template to storage container

扶醉桌前 提交于 2020-01-02 10:21:40
问题 I'm trying to assign the role "Storage Blob Data Contributor (Preview)" to a specific storage container via arm template. But I just can't figure out the correct syntax. This is what I have: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "principalId": { "type": "string", "metadata": { "description": "The principal to assign the role to" } }, "builtInRoleType": { "type": "string", "allowedValues": [

Set a custom domain for a storage account using Azure Powershell

余生颓废 提交于 2019-12-12 17:03:38
问题 Is it possible to set up a custom domain for a Azure Resource Manager (ARM) storage account using Azure Powershell? If so, how? I tried to set up a custom domain through the Azure Preview Web Portal but that functionality does not yet exist for the new resource manager storage accounts. Using this documentation, I am able to login and see the properties of my new RM storage account, but I am unsure how to update the CustomDomain property. I expected to find an example/documentation of how

How to get Azure Storage Account Key

你。 提交于 2019-12-12 01:57:01
问题 I want to upload a file to an Azure Storage account that is automatically generated (As part of a Service Fabric resource group, with a known name), using C#. I need to upload the file as a blob to allow it to be publicly available. The tutorial Get started with Azure Blob storage using .NET uses a connection string stored in the App.config file. Since I want to use the to-be-generated storage account, I can't use such a method. The prefered method is using the user's AD somehow in order to

Unable to create Storage account on Azure C#

喜欢而已 提交于 2019-12-10 23:24:56
问题 I am trying to create a storage from c# in asp.net MVC application but it throws me error Account type StandardLRS is invalid as you can see below Below is the code which I am using for creation string token = GetAccessToken("sub id", "app name", "tenant id"); var Credentials = new TokenCredentials(token); var resourceManagementClient = new ResourceManagementClient(Credentials); resourceManagementClient.SubscriptionId = "sub id"; var storageProvider = resourceManagementClient.Providers

Azure: Assign Roles via ARM Template to storage container

天涯浪子 提交于 2019-12-06 15:00:33
I'm trying to assign the role "Storage Blob Data Contributor (Preview)" to a specific storage container via arm template. But I just can't figure out the correct syntax. This is what I have: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "principalId": { "type": "string", "metadata": { "description": "The principal to assign the role to" } }, "builtInRoleType": { "type": "string", "allowedValues": [ "Contributor", "Reader", "StorageBlobDataContributor" ], "metadata": { "description": "Built-in role to

Azure rest apis to ListKeys of classic storage account

一个人想着一个人 提交于 2019-12-02 17:38:28
问题 I wanted to retrieve the access keys of classic storage account. I found this online POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys?api-version=2016-12-01 But this is not applicable for classic storage account. When I replace the Microsoft.Storage to Microsoft.ClassicStorage, it throws the following error { "error": { "code": "InvalidRequestUri", "message": "The request uri

Azure rest apis to ListKeys of classic storage account

一世执手 提交于 2019-12-02 10:26:35
I wanted to retrieve the access keys of classic storage account. I found this online POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys?api-version=2016-12-01 But this is not applicable for classic storage account. When I replace the Microsoft.Storage to Microsoft.ClassicStorage, it throws the following error { "error": { "code": "InvalidRequestUri", "message": "The request uri is invalid. The requested path '/subscriptions/{subscriptionID}/resourceGroups/{myresourcegroup}