Shared or private resources on azure portal - azure

My company has a Microsoft account (office365, mails, ...)
I plan to work with azure virtual machines.
There is something strange: all my virtual machines and all my azure resources (websites, ...) are private. My collegues cannot manage them. They can connect with ssh but they don’t see entry in there azure portal account.
Is there a way to share all the azure resources in the whole company, for all users ?
Thanks

You have to assign role to see azure resources. In azure we have a bunch of predefined roles for example - reader. If you assign reader role at the subscription level, so the member can read all resources located in that subscription, but can not make any changes. Here can you read more about roles based access control
Why users can connect to vm, but can't see in the portal? My bet is that VM ports are not blocked and all internet can connect to those VM's.

Related

Accessing Azure Storage Accounts with Selected Network Enabled

As per the requirements, I need to Enable Firewall with Selected Network ON for Azure Storage Accounts. But when I do the same along with adding all required IPs, Azure Function App and Azure Data Factory is going down.
Currently the VNET is unavailable and cannot be created. Managed Identity is not an option as Contributor role unavailable.
Is there a way to to configure the Data Factory and Function Apps after enabling FireWall with selected networks for Azure KeyVault and Azure Storage Accounts.
Please find the below steps helps to work around:
Is there a way to to configure the Data Factory and Function Apps after enabling FireWall with selected networks for Azure KeyVault and Azure Storage Accounts.
When Network rules like specified IP Addresses, IP Ranges, subnets are configured to the storage accounts, then that storage accounts can only be accessed by applications that request data over the specified set of networks or through the specified set of Azure resources.
Also, the option Allow Trusted Services is set to ON while enabling the firewall for a storage account, which allows connectivity from Azure trusted services like Data Factory, Azure functions, etc.
Visit this documentation to know the list of trusted services allowed to access a key vault in Azure.
You have to create the VNet, attach to the Azure Function App which helps to connect to the Storage Account.
Currently the VNET is unavailable and cannot be created. Managed Identity is not an option as Contributor role unavailable.
To enable a service endpoint for a subnet/IP Addresses attached to Storage account, you can have custom role like Microsoft.Network/virtualNetworks/subnets/joinViaServiceEndpoint/action.
Refer to MSFT Docs1 and here for more information.

Azure Storage Account: Firewall and virtual networks

I have enabled Virtual Network and Firewall access restrictions for Azure Storage Account, but faced the issue, that I do not have an access to Storage Account from Azure Functions(ASE environment), despite fact that ASE public address is added as exception. Additionaly, I have added all environment's virtual networks just to make sure.
Is there any way to check from which address functions/other services is trying to get an access to storage account?
Also, I have a tick "Allow trusted Microsoft services to access this storage account
". I'm not sure what is included into "trusted Microsoft services".
In the Application Insight Functions logs, only timeout issue appears, without additional explanation.
Could you please help me to understand how to properly configure storage account access restriction?
Have a look of this doc:
https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security#trusted-microsoft-services
From your description, I think you dont give a RBAC role to your azure function to access the storage.
Do this steps:
If you need more operation. Like do something with the data. Do need to add more RBAC roles, have a look of this offcial doc to learn more about RBAC roles:
https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#all

Azure VM - Start / Power-On with RDP or PowerShell

Kid went off to college - wants to use his Surface RT to access a VM I created for him on Azure.
Anyone have a way to power the VM on & off without giving him the keys to my Azure account?
If there isn't a way to do it in PS or RDP is there script I could put on a .NET site that he could http to to start and stop the VM?
Create or Add user account for him, then give the user VM contributor role. When he logs in to the portal with his credentials he should only have access to stop and start VM.
https://learn.microsoft.com/en-us/azure/active-directory/role-based-access-control-what-is
https://learn.microsoft.com/en-us/azure/active-directory/role-based-access-control-configure
https://learn.microsoft.com/en-us/azure/active-directory/role-based-access-built-in-roles#virtual-machine-contributor
Agree with Hannel, you can create an Azure AD user for your kid, then grant he the resource permission, he can logs in Azure portal to start or stop that VM.
You can create Azure AD account follow this article.
Then you can grant permission to that account, like this:
You can give he the owner role to he, also you can select Virtual Machine Contribute (Can manage virtual machines, but not the virtual network or storage account to which they are connected)to he, more information about Azure built-in roles, please refer to this article.
Also you can define a new role to he, about Custom roles please refer to this article.
Hope this helps.

Azure subscription access between multiple subscription

I need help with some azure questions, sorry I new to azure
If under one agreement I have multiple subscriptions broken out into the following
production-client-a
production-client-b
IAT
UAT
Infrastructure
Can services in either "production-client-a" or "production-client-b" subscriptions access services in the "infrastructure-main", this would be like active directory / chef server / octopus deploy servers,etc
If this is possible, can you then control what networks have access to certain services in different subscriptions?
for example:
production-client-a subscription hosts (access to ports 80 + 443) to infrastructure-main subscription chef-server
How would you go about setting this up ?
Hope this makes sense
I believe no, not directly. If these are PaaS services that can be used with some endpoints or connection strings, then yes. If you want to access resources from the subscription1 from subscription2 in like... one namespace or just select "subscription1 resource" from the subscription2 dashboard, then no.
If you want to put your Chef master in one subscription and add slaves from different subscriptions, there should not be a problem.

Only give PS access to a specific VM?

I have an VM running in Azure which I would like the client to be able to turn on/off easily. I tought this would be simple; just a PS-script that performs an startup/shutdown/dealloc. But it seems I can't generate a "Azure Publish Settings"-file that only gives access to that VM? At the moment it seems I can only control this at the subscription level?
The Azure Publish Settings file basically contains the access information for an entire Azure subscription. It does not specify access to a specific resource (e.g. VM) but to all resources inside of a subscription.
To limit access to a subset of resources in Azure, you should be looking at the new role-based access (RBAC) functionality, which is available in the Azure preview portal and the latest Azure PowerShell cmdlets.
How it works is that you create an Azure resource group, to which you can assign roles with specific rights, and to this role you can then assign individual users.
Check the following Azure documentation link for details on how to do this.

Resources