Questions tagged [azure-role-environment]
54 questions
1
vote
3 answers
Cant read configuration. RoleEnvironment may be inaccessible due to its protection level
This is my first azure project and I'm not sure if I'm doing something wrong.
I'm trying to get some configuration inside an MVC 3 webrole and for this I'm using:
RoleEnvironment.GetConfigurationSettingValue(KeyName)
When I run the application on…

CodeMaster2008
- 921
- 2
- 13
- 25
1
vote
1 answer
Azure golang SDK - Assign AcrPull role to AKS cluster
Having created an AKS cluster and ACR -- I am now trying to programatically grant the AKS cluster the AcrPull role.
Currently I am attempting to do this using the RoleAssignmentsClient.Create() function from the golang SDK.
Here is what I have tried…

Rutvik Saptarshi
- 13
- 3
1
vote
1 answer
Get-AzureADMSPrivilegedRoleAssignment : The term 'Get-AzureADMSPrivilegedRoleAssignment' is not recognized
Unable to execute Get-AzureADMSPrivilegedRoleAssignment in powershell its giving me an error as
Get-AzureADMSPrivilegedRoleAssignment : The term 'Get-AzureADMSPrivilegedRoleAssignment' is not recognized
I tried installing AzureADPreview module, it…

Jim Macaulay
- 4,709
- 4
- 28
- 53
1
vote
1 answer
Managed Identity Azure Role Assignments?
I'm trying to add the Service Bus Receiver role to a User Assigned Managed Identity via an ARM template.
i.e. this role. https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#azure-service-bus-data-receiver
Here is the…

randy
- 253
- 4
- 17
1
vote
1 answer
How to Assume role by a Trusted Third Party to your Azure Account (Similar to AWS)
AWS allows a trusted Third Party relationship by creating an IAM Role for the Third-Party's AWS account in your account and then assigning it an External Id. After this the Trusted Third Party can assume the IAM Role with API and pass an external Id…

ameya
- 1,448
- 1
- 15
- 31
1
vote
0 answers
add user subscription to multiple roles in MS Azure
I'm adding users to MS Azure subscriptions. And it looks to me as if you can only add one role to one subscription at a time. Is it possible to add multiple roles to one subscription at the same time?

bluethundr
- 1,005
- 17
- 68
- 141
1
vote
1 answer
Azure cloud service/role instance stuck
I have 4 instances of my cloud service and randomly one of instance gets stuck while initializing and i get the following error in portal dashboard
Busy (Waiting for role to start... Application startup tasks are running.Last role error: exit code -…

Sabby62
- 1,707
- 3
- 24
- 37
1
vote
1 answer
Cannot access RoleEnviroment when running multiple Sites inside Cloud Service
I have got an existing solution which uses settings from RoleEnviroment in both the WebRole.OnStart and Global.asax Application_Start handlers. (This has been running well for months)
This all works fine when I have just one Site inside my…

James
- 2,458
- 3
- 26
- 50
1
vote
1 answer
RoleEnvironmentException When Deploying Worker Role To Azure
When I try to deploy by Worker to Azure, I get the following exception:
Application: WaWorkerHost.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info:…

COBOL
- 1,031
- 8
- 16
- 32
1
vote
1 answer
Reference Microsoft.WindowsAzure.ServiceRuntime outside a Web or Worker role
I have a scenario where I need to be able to use the Microsoft.WindowsAzure.ServiceRuntime outside of a Web/Worker role.
Specifically I have the following code
public static RoleInstanceEndpoint ResolveIP()
{
if (RoleEnvironment.IsAvailable)
…

Maxim Gershkovich
- 45,951
- 44
- 147
- 243
1
vote
1 answer
SSL warning publishing role to Azure
When publishing a role to Azure, the process stays in pending state and I eventually have to cancel the process. The following warning gets repeated continuously "Warning: The server encountered an unknown failure: The underlying connection was…

user1804020
- 79
- 1
- 3
0
votes
3 answers
Java SDK for Azure - error with RoleEnvironment.getCurrentRoleInstance()
I've deployed a worker role with Tomcat 7 and a very simple test servlet which should simply display the ID of the serving instance (I want to test a session management solution across multiple instances).
I'm using the Azure SDK for java…

kenxl
- 319
- 1
- 4
- 13
0
votes
1 answer
Can't access Identity Provider in Azure App Service Authentication menu
When i try to access the 'Authentication' menu in Azure App Service, I get a message saying I don't have access to this.
I don't want to use the built-in roles like 'Contributor' or 'Owner'. I have created a custom role, with granular permissions…

huju vert
- 13
- 4
0
votes
1 answer
what is the role assinged to the creater of the resource in azure
We have a tenant where all users are provided contributor access. Now, if i create a resource, what is the role assigned to me?
I can see that whatever resource I create, I still inherit contributor role only. But ideally, I should get owner role…

Onki
- 1,879
- 6
- 38
- 58
0
votes
1 answer
Create New Windows Azure Hosted Service from a Worker Role
What is the best way to create a new Windows Azure Hosted service from a running role using a package and configuration that I have stored in blob storage?
I am guessing that I could use a Service Management REST API Create Deployment request,…

DrewF
- 91
- 9