Prateek Singh wrote a new post, Create a custom role with Azure role-based access control (Azure RBAC) using PowerShell 2 years, 1 month ago
Azure role-based access control (Azure RBAC) is a system that allows us to define and manage fine-grained access to Azure resources. RBAC not only provides Azure admins a lot of control by neatly defining roles and responsibilities, but also enables admins to control access to team members/users by allowing or disabling actions they can perform on Azure Resources.
Prateek Singh wrote a new post, Install Docker offline on Windows Server 2016 4 years, 3 months ago
Enterprise servers are not always exposed to the internet and are often sitting behind firewalls with restrictions to prohibit any malicious activity on an internet-facing server. But to install a Docker image from the Docker Hub, you need internet access. To overcome this, you can configure a Docker client to use a proxy server if one is available, but there is another way around this, which we will discuss in the following high-level steps.
Prateek Singh wrote a new post, Copy files between Hyper-V and a guest VM 4 years, 4 months ago
Various ways exist to copy data between a Hyper-V host and its guest machines. In this post, I will discuss the enhanced session mode, the PowerShell Copy-VMFile cmdlet, the option to mount a virtual hard disk, and using a network share.
Ruben Zimmermann and
Prateek Singh are now friends 4 years, 4 months ago
Sudhi and
Prateek Singh are now friends 4 years, 4 months ago
Thank you Sanket!
Prateek Singh liked comment of Sanket Gupta on Join an Azure VM to an on-prem Active Directory. (So far, Sanket Gupta has 1 likes for this comment.) 4 years, 4 months ago
Prateek Singh wrote a new post,
Using PowerShell type accelerators 4 years, 4 months ago
PowerShell type accelerators are aliases for .NET classes or types, which makes using classes in PowerShell scripts much easier. The intention behind type accelerators is to use shorter names for .NET classes and types and save some unnecessary typing. For example, when you use the type accelerator [int] to define an integer value, there’s actually no data type called int. Instead, it’s just an alias for the [System.Int32] class.
Prateek Singh wrote a new post, Join an Azure VM to an on-prem Active Directory 4 years, 5 months ago
There are several scenarios in a hybrid cloud setup where you would want virtual machines running on Azure to be part of an on-premises Active Directory.
Prateek Singh wrote a new post, Running the AWS CLI and Python on Windows 10 in a Linux Bash shell 4 years, 5 months ago
The Windows Subsystem for Linux (WSL) lets developers and system administrators run a Bash shell in a chosen Linux distribution package. They can run their favorite command-line Linux tools like the Amazon Web Services (AWS) Command Line Interface (CLI) in Python on Windows 10.
Prateek Singh wrote a new post,
Using a local variable in a remote PowerShell session 4 years, 6 months ago
While working with remote computers with PowerShell, you’ll come across many scenarios where you may want to use local variables or data in a remote session. But when you try to use a local variable in a remote session, it may not work or may throw an error because the local variable doesn’t exist in the remote session.
Prateek Singh wrote a new post,
Managing disks with PowerShell 4 years, 6 months ago
In this post you will learn how to perform various disk management tasks with PowerShell. I will explain how to list disks, format disks, initialize disks, and create and delete volumes and partitions.
Prateek Singh wrote a new post,
Install and configure an FTP server with PowerShell 4 years, 7 months ago
In this post you will learn how to install an FTP server with PowerShell. I will show you how to configure the site name, port, and root folders. Then I will explain how to create FTP users, how to authenticate users, and how to configure the SSL policy and NTFS permissions.
Prateek Singh wrote a new post, Publish AWS CloudWatch custom metrics with PowerShell 4 years, 7 months ago
Amazon CloudWatch is a monitoring service for Amazon Web Services (AWS) that provides robust monitoring of your entire AWS infrastructure resources and applications. It can collect data, gain insights, and alert users to fix problems within applications and resources if required. Amazon CloudWatch can also hold and represent your custom data in a graph. It is not necessarily limited to data from your AWS infrastructure and resources.
I agree you can not use New, Remove, Copy, Move-Item, because even though the information store looks like a File System it is just a model of a another system with different types/objects which has nothing to do with Files or directories. But we can write custom functions or use modules that work for the system we are modeling by importing them in the SHiPS provider module.
For example the Azure Drive in Azure cloud shell which is also a SHiPS implementation, if you navigate to ./Subscription/VirtualMachines/ you can use New-AzureRmVM command to create a New Item (Virtual Machine) under that directory and if you look closely it uses the AzureRM.Compute module which has been imported to fulfill such needs.
PS Azure:> cd ./Pay-As-You-Go/VirtualMachines/
PS Azure:> Get-AzureRmCommand | Where-Object Name -like “New-*”
CommandType Name Version Source
———– —- ——- ——
Cmdlet New-AzureRmVM 0.12.0 AzureRM.Compute.Netcore
Cmdlet New-AzureRmVMConfig 0.12.0 AzureRM.Compute.Netcore
Cmdlet New-AzureRmVMDataDisk 0.12.0 AzureRM.Compute.NetcoreFollowing is a link if you want to take a look how AzurePSDrive is Implemented using SHiPS – https://github.com/PowerShell/AzurePSDrive/blob/development/AzurePSDrive.psm1
Prateek Singh wrote a new post,
Create a custom PowerShell provider 4 years, 8 months ago
Windows PowerShell providers offer an abstraction layer to access data stores and their components, which would not be accessible otherwise through the command line. In this post you will learn how to create your own custom PowerShell provider.
Prateek Singh wrote a new post, Mount an Azure drive using PowerShell 4 years, 8 months ago
Azure drive (AzurePSDrive) is a custom PowerShell provider written with the Simple Hierarchy in PowerShell (SHiPS) module, mountable with the New-PSDrive cmdlet. The SHiPS module has the capability to convert any information store or system into a hierarchy tree accessible like a file system. It converts Azure Resource Manager (AzureRM) resource items to a SHiPS-based drive for easy navigation and discovery through your cloud shell.
Prateek Singh wrote a new post,
Install AWS Tools for PowerShell Core 4 years, 9 months ago
In this post you will learn how to install the AWS Tools for PowerShell Core The AWS (Amazon Web Services) Tools for PowerShell Core are modules built upon functionalities exposed by the AWS SDK (Software Development Kit) for .NET. With this, you can automate and operate on AWS resources from a PowerShell command line.
Prateek Singh's profile was updated 4 years, 9 months ago
Prateek Singh changed their profile picture 4 years, 9 months ago
- Load More