An Azure Virtual Network also known as a VNet is a representation of your network in the cloud. It is a logical isolation of the Azure cloud dedicated to your subscription. You can use VNets to provision and manage virtual private networks (VPNs) in Azure and, optionally, link the VNets with other VNets in Azure known as VNET peering. You can also connect a VNET in Azure to your on premises IT infrastructure to create hybrid or cross premises solutions. Each VNet you create has its own CIDR block and can be linked to other VNets and on premises networks as long as the CIDR blocks do not overlap. You also have control of DNS server settings for VNets, and segmentation of the VNet into subnets.
You can use VNets to:
Create a dedicated private cloud only VNet. Sometimes you don’t require a cross premises configuration for your solution. When you create a VNet, your services and VMs within your VNet can communicate directly and securely with each other in the cloud. You can still configure endpoint connections for the VMs and services that require Internet communication, as part of your solution.
Securely extend your data center. With VNets, you can build traditional site to site (S2S) VPNs to securely scale your data centre capacity. S2S VPNs use IPSEC to provide a secure connection between your corporate VPN gateway and Azure.
Enable hybrid cloud scenarios. VNets give you the flexibility to support a range of hybrid cloud scenarios. You can securely connect cloud based applications to any type of on premises system.
How to create an Azure Virtual Networkstep by step
Login to the Azure portal via portal.azure.com
Search for Virtual Network within the search bar, or click Create a resource and locate and click Virtual Network
3. Click Add
4. Complete details (Screenshot below for demo purposes), and click next
5. Complete the IP Addresses tab. For the purpose of this demo, I have completed the details as shown below, click next when done
6. Moving onto the Security tab, you will be provided with a few options. For the purpose of this demo, I will leave the defaults but I have provided links to each feature below.
7. For the purpose of this demo no tags will be used. You can click the following link to find out more about Azure tags
8. Click Review and create and then create. You’re done with your first basic VNET creation. Give it a try in your test Azure portal. Microsoft also offer a free 30 day trial you can take benefit of. Click Azure Free Trial
In this blog post I will go through the process of enabling 365 Group expiration. I will also assign a default owner to 365 groups where no owner exists.
Please note:
Groups with user activities are automatically renewed as the expiration nears so the group will not be deleted unless there is no user activity. With Azure AD intelligence, groups are now automatically renewed based on whether they have been recently used. This feature eliminates the need for manual action by group owners, because it’s based on user activity in groups across Microsoft 365 services like Outlook, SharePoint, or Teams. For example, if an owner or a group member does something like upload a document in SharePoint, visit a Teams channel, or send an email to the group in Outlook, the group is automatically renewed and the owner does not get any renewal notifications.
Owners of the group are notified to renew the group, if the group is not auto renewed, for example, no user activity.
Any group that is not renewed is deleted and can be be restored within 30 days by the group owners or the administrators.
You can only set an expiration policy for Microsoft 365 groups in Azure AD
Currently, only one expiration policy can be configured for all Microsoft 365 groups in an Azure AD organisation
Configuring and using the expiration policy for Microsoft 365 groups requires you to possess but not necessarily assign Azure AD Premium licenses for the members of all groups to which the expiration policy is applied.
When you first set up expiration, any groups that are older than the expiration interval are set to 35 days until expiration unless the group is automatically renewed or the owner renews it
When a dynamic group is deleted and restored, it’s seen as a new group and re-populated according to the rule. This process can take up to 24 hours.
Expiration notices for groups used in Teams appear in the Teams Owners feed.
If groups are not automatically renewed, email notifications are sent to the Microsoft 365 group owners 30 days, 15 days, and 1 day prior to expiration of the group
Owners are sent an email to confirm when the group is deleted with the option to click a link to restore the group for up to 30 day
When a group expires and is deleted, 30 days after deletion the group’s data from apps like Planner, Sites, or Teams is permanently deleted, but the group mailbox that is on legal hold is retained and is not permanently deleted.
If you have set up a retention policy for Microsoft 365 groups, when a group expires and is deleted, the group conversations in the group mailbox and files in the group site are retained in the retention container for the specific number of days defined in the retention policy. Users won’t see the group or its content after expiration, but can recover the site and mailbox data via e-discovery.
Let’s get started with configuring Microsoft 365 group expiration
Login to the Azure Portal portal.azure.com
Click Azure AD or browse and click using the search box
Click Groups
4. Click Expiration
5.
– Specify the number of days for group expiry – Add a contact email address or use several email addresses by separating them with a semicolon ; – If you wish to apply the policy to all 365 groups, select All – If you wish to select a number of 365 groups, click Selected and locate the groups you would like to apply the expiration policy.
Remove Microsoft 365 group expiration policy
In the event you need to remove the policy
Select Azure Active Directory > Groups > Expiration
Set Enable expiration for these Microsoft 365 groups to None
In this blog post I will assign a server within Azure a static IP address. By default all servers obtain an IP automatically.
Please note: You can not assign a server in Azure a static IP from within the OS. This will cause communication issues between the Azure agent on the server and Azure.
You may also want to check out my recent blog posts if you’re just starting out:
To check the version of PowerShell you currently have installed, launch PowerShell, run the command below:
Get-Host | Select-Object Version
2) Now that you have the latest version of PowerShell installed, you will need to install the AZ module if not already installed. The command below will allow you to check if you already have the AZ Module installed including the version number.
Get-Module -Name Az -ListAvailable
3) If you already have the AZ module installed, the version will appear. If no version is installed, no results will appear after running the above command. You may find that you have more the one version installed.
To install the latest version, type the command below:
Install-Module -Name Az -AllowClobber
Please note, if you already have older versions of the Az Module installed, you may wish to add -force to the end of the command so that the module installs side by side with your existing versions. Such as:
Install-Module -Name Az -AllowClobber -force
Installing the module will take about a minute. Run the command below again to confirm the module has installed
Get-Module -Name Az -ListAvailable
If you have multiple versions of the AZ Module installed, the latest version will be used by default, unless you specify for an older version to be used.
Building a server in Microsoft Azure is simple and has become easier as Microsoft have made improvements on the portal over the years.
In this example, i’ll be building a Windows 2019 Server, so lets get started
Logon to your Azure Portal, search for virtual machines and click + Add
The below interface appears, select your subscription from the drop down list. If you only have the one, it will already be selected
Next, drop down and select a resource group.
What is an Azure Resource Group? A resource group is a container that holds related resources for an Azure solution. The resource group includes those resources that you want to manage as a group. You decide which resources belong in a resource group based on what makes the most sense for your organisation.
For the purposes of this demo, I’m going to create a new resource group
Next, lets give our virtual server a name and select a region. I have selected UK South
Next, I’m going to create this VM in a new availability set, because I will be building and adding another virtual web server and including it within the same availability set to provide for high availability. If you’re not interested in creating an availability set, you can skip these steps. But because it doesn’t cost anything to create an availability set, you may want to add the server to an availability set if you have plans of setting up redundancy in the future. You’ll obviously be charged for the second server, but the availability set is free. If you decide at this point you don’t require redundancy, but in the future change you’re mind, you will have to delete and recreate the VM to allow you to add it to a new availability set.
What is an Azure availability set? An availability set is a logical grouping of VMs within a datacenter that allows Azure to understand how your application is built to provide for redundancy and availability. Azure makes sure that the VMs you place within an Availability Set run across multiple physical servers, compute racks, storage units, and network switches. More info at: Azure Availability Options
Create a new availability set (I’m leave the defaults) and click OK. When you create another server, drop down and select an existing availability set. The below screenshot shows my new availability set. It’s worth looking into how fault domains and update domains function.
Next, select your Operating System. I have selected Windows Server 2019 Datacenter and a size of Standard DS1 v2 for this demo. The higher spec server the more it will cost you so ensure you select the correct server size depending on requirements
You may have noticed Azure Spot Instance. What is Azure Spot? Azure Spot offers unused Azure capacity at a discounted rate versus pay as you go prices. Workloads should be tolerant to infrastructure loss as Azure may recall capacity for pay as you go workloads. It’s recommended to use Azure Spot only if you’re testing and are happy for Microsoft to delete your VM without much notice. Never use this for production or even a test environment you require access to at all times.
Next setup your local administrator account and a strong password. For inbound public ports, I have set none. I will be accessing this server internally via RDP and don’t want to expose RDP to the outside world. If Bastion is available with your region, you could set it up so you can access your VM from within the portal. For more details on how to configure Azure Bastion, click How to Configure Bastion? If you have a requirement for public RDP to be enabled, lock down access to certain IP addresses and it’s worth setting up Azure Just In Time Access.
What is Azure Just In Time Access? Just-in-time (JIT) virtual machine (VM) access can be used to lock down inbound traffic to your Azure VMs, reducing exposure to attacks while providing easy access to connect to VMs when needed. The just-in-time feature is available on the Standard tier of Security Center
Click next, to configure disks. Select your disk types depending on your server/application requirements
You may also have a requirement to add an additional disk, such as a data disk. Don’t worry about creating a page file disk. You’ll get a temporary disk assigned by default. For the purposes of this demo, i will create 128GB Premium SSD
So here is what my disk configuration looks like. OS Premium SSD and additional 128GB SSD.
Click next to visit networking settings
Select your virtual network, subnet, a public IP if required and basic or advanced NSG. The common NSG is basic but will obviously depend on your company requirements. You can also control the NSG at subnet level within your VNET, or even route all traffic to an external firewall, such as a Paloalto firewall. It’s worth consulting with your networks team on security requirements.
When ready click next and configure management settings as required
I have set my machine to auto shut at 7pm. It’s only a test server and doesn’t need to be powered on after 7pm. Will save me on costs while it’s powered down.
Click next. If you have any requirements to install any extensions, such as Microsoft Antimalware, you can select here. If you’re not sure just yet, don’t worry about it, as you can select extensions after the VM build. It’s worth taking a look at the available extensions though. Click Next when ready
Create tags if required. Explanation of tags below
And click review and create
You’ll receive a notification after the VM has been built
I hope this post was useful. Feel free to comment below if you have any further questions.